Skip to content

Instantly share code, notes, and snippets.

@alx-andru
Last active October 29, 2018 00:24
Show Gist options
  • Save alx-andru/bf4809bb26931b080ccad6a208e0642a to your computer and use it in GitHub Desktop.
Save alx-andru/bf4809bb26931b080ccad6a208e0642a to your computer and use it in GitHub Desktop.
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