Last active
October 29, 2018 00:24
-
-
Save alx-andru/bf4809bb26931b080ccad6a208e0642a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NgOidcClientModule.forRoot({ | |
oidc_config: { | |
authority: 'https://YOUR_DOMAIN.auth0.com', // e.g. https://ngOidcClient.auth0.com/' | |
client_id: 'YOUR_CLIENT_ID', | |
redirect_uri: 'http://localhost:4200/callback.html', | |
response_type: 'id_token token', | |
scope: 'openid profile offline_access api1', | |
post_logout_redirect_uri: 'http://localhost:4200/signout-callback.html', | |
silent_redirect_uri: 'http://localhost:4200/renew-callback.html', | |
automaticSilentRenew: true, | |
metadata: { | |
issuer: 'https://YOUR_DOMAIN.auth0.com/', | |
authorization_endpoint: 'https://YOUR_DOMAIN.auth0.com/authorize', | |
userinfo_endpoint: 'https://YOUR_DOMAIN.auth0.com/userinfo', | |
end_session_endpoint: | |
'https://YOUR_DOMAIN.auth0.com/v2/logout?returnTo=http%3A%2F%2Flocalhost%3A4200%2Fsignout-callback.html' | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment