Skip to content
This repository has been archived by the owner on Dec 14, 2017. It is now read-only.

Updated tutorial for js Client #200

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

ezrichie2006
Copy link

Modified:

    authority: 'https://localhost:44300',
    client_id: 'js',
    popup_redirect_uri: 'http://localhost:56668/popup.html',

response_type: 'id_token',
scope: 'openid profile', //this should be scope: 'openid profile email',

filter_protocol_claims: true


};```

Also:
- `popup_redirect_uri` is the redirect URL used when using the `openPopupForTokenAsync` method. If you prefer not having a popup and redirecting the user in the main window, you can use the `redirect_uri` property and the `redirectForTokenAsync` method //this should actually be redirectForToken.  There is no Async method.
- `response_type` defines in our case that we only expect an identity token back

Modified:

```var settings = {
    authority: 'https://localhost:44300',
    client_id: 'js',
    popup_redirect_uri: 'http://localhost:56668/popup.html',

    response_type: 'id_token',
    scope: 'openid profile', //this should be scope: 'openid profile email',

    filter_protocol_claims: true
};```

Also:

 - `popup_redirect_uri` is the redirect URL used when using the `openPopupForTokenAsync` method. If you prefer not having a popup and redirecting the user in the main window, you can use the `redirect_uri` property and the `redirectForTokenAsync` method //this should actually be redirectForToken.  There is no Async method.
 - `response_type` defines in our case that we only expect an identity token back
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant