Skip to content

Instantly share code, notes, and snippets.

@alx-andru
Created October 29, 2018 00:23
Show Gist options
  • Save alx-andru/ba7825ea541a945924c4e6ed448f0033 to your computer and use it in GitHub Desktop.
Save alx-andru/ba7825ea541a945924c4e6ed448f0033 to your computer and use it in GitHub Desktop.
NgOidcClientModule.forRoot({
oidc_config: {
authority: 'YOUR_DOMAIN', // e.g. https://dev-133788.oktapreview.com
client_id: 'YOUR_CLIENT_ID',
redirect_uri: 'http://localhost:4200/callback.html',
response_type: 'id_token token',
scope: 'openid profile offline_access',
post_logout_redirect_uri: 'http://localhost:4200/signout-callback.html',
silent_redirect_uri: 'http://localhost:4200/renew-callback.html',
automaticSilentRenew: true
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment