Skip to content

Instantly share code, notes, and snippets.

@alx-andru
Created November 1, 2018 18:59
Show Gist options
  • Save alx-andru/27a2ed36055746c47eacb7c3fdd73d47 to your computer and use it in GitHub Desktop.
Save alx-andru/27a2ed36055746c47eacb7c3fdd73d47 to your computer and use it in GitHub Desktop.
NgOidcClientModule.forRoot({
oidc_config: {
authority:
'https://login.microsoftonline.com/TENANT_ID/v2.0',
client_id: 'CLIENT_ID',
redirect_uri: 'https://localhost:4200/callback.html',
response_type: 'id_token token',
scope: 'openid profile offline_access',
loadUserInfo: false,
post_logout_redirect_uri:
'https://localhost:4200/signout-callback.html',
silent_redirect_uri: 'https://localhost:4200/renew-callback.html',
automaticSilentRenew: true,
metadata: {
issuer:
'https://login.microsoftonline.com/TENANT_ID/v2.0',
jwks_uri:
'https://login.microsoftonline.com/TENANT_ID/discovery/v2.0/keys',
end_session_endpoint:
'https://login.microsoftonline.com/TENANT_ID/oauth2/v2.0/logout"',
authorization_endpoint:
'https://login.microsoftonline.com/TENANT_ID/oauth2/v2.0/authorize'
},
signingKeys: [
{
kty: 'RSA',
use: 'sig',
kid: '',
x5t: '',
n: '',
e: 'AQAB',
x5c: [''],
issuer: 'https://login.microsoftonline.com/TENANT_ID/v2.0'
},
...
]
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment