Created
November 1, 2018 18:59
-
-
Save alx-andru/27a2ed36055746c47eacb7c3fdd73d47 to your computer and use it in GitHub Desktop.
This file contains hidden or 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://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