This commit is contained in:
siacomuzzi 2014-07-21 10:57:01 -03:00
Родитель a653cf24b3
Коммит 475ffecd93
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -39,7 +39,7 @@ If you prefer using <a href="http://build.phonegap.com/" target="_new">PhoneGap
### 2. Setting up the callback URL in Auth0
<div class="setup-callback">
<p>Go to the <b>Application Settings</b> section on Auth0 Admin app and make sure that <b>App Callbacks URLs</b> has the following value:</p>
<p>Go to the <a href="@@uiAppSettingsURL@@" target="_new">Application Settings</a> section on Auth0 Admin app and make sure that <b>App Callbacks URLs</b> has the following value:</p>
<pre><code>https://@@account.namespace@@/mobile</pre></code>
</div>
@ -112,11 +112,9 @@ function (err, result) {
The `Auth0User` has the following properties:
* `profile`: returns a JSON object containing all available user attributes (e.g.: `user.profile.email`).
* `idToken`: is a Json Web Token (JWT) containing all of the user attributes and it is signed with your client secret. This is useful to call your APIs and flow the user identity (or Windows Azure Mobile Services, see below).
* `idToken`: is a Json Web Token (JWT) containing all of the user attributes and it is signed with your client secret. This is useful to call your APIs and flow the user identity.
* `auth0AccessToken`: the `access_token` that can be used to access Auth0's API. You would use this for example to [link user accounts](link-accounts).
> If you want to use __Windows Azure Mobile Services__ (WAMS) you should create a WAMS app in Auth0 and set the Master Key that you can get on the Windows Azure portal. Then you have change your Windows Store App to use the client id and secret of the WAMS app just created and set the callback of the WAMS app to be `https://@@account.tenant@@.auth0.com/mobile`. Finally, you have to set the `MobileServiceAuthenticationToken` property of the `MobileServiceUser` with the `IdToken` property of `Auth0User`.
## Download the sample
Browse the sample on GitHub from [here](https://github.com/auth0/phonegap-auth0-sample).