Skip to content

Commit 40f6dff

Browse files
committedApr 2, 2014
Added CID instrcutions
1 parent 28e8181 commit 40f6dff

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎docs/wams.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,13 @@ These 6 new lines of code do all the work for you. The important aspects:
8585

8686
1. The `Auth0Client` class takes 2 parameters: your `namespace` and the `clientId` of the client application.
8787
2. There are various overloads for the `LoginAsync` method. In the example above all options will be presented to the user. You can use other versions of `LoginAsync` to direct login to a specific provider. For example: `LoginAsync("github")` will have users login exclusively with GitHub.
88-
3. The `GetDelegationToken` call exchanges the client token (just received in step #2) for another token to be used for with WAMS.
88+
3. The `GetDelegationToken` call exchanges the client token (just received in step #2) for another token to be used for with WAMS.
8989
4. A new `MobileServiceUser` object is created with the new information.
9090

91+
The input for the `GetDelegationToken` method, is the clientID of the WAMS API. This value is available the the WAMS `settings`:
92+
93+
![](img/wams-tutorial-4b.png)
94+
9195
You might wonder why step #3 is necessary. This abstraction layer allows your client app to interact with multiple WAMS APIs (or even other APIs altogether). You can control in Auth0 which clients can call which API. You could, as an example, login a user with GitHub, then connect him to WAMS, and also interact with an AWS hosted endpoint. The delegation call allows you to flow the identity of the user across multiple environments in a clean, secure way.
9296

9397
> The sample above is using Windows 8, C#. Clients on other platforms would use almost identical code.

‎public/img/wams-tutorial-4b.png

41.8 KB
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.