Last active
July 5, 2019 13:11
-
-
Save rhysgodfrey/6b0d0042f0452a484b34d0302117afca 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
var SITE_URL = "https://theurlofyourwebsitethisisrunningon.com"; | |
var IDENTITY_URL = "https://yourenant.eu.auth0.com/"; | |
var config = { | |
authority: IDENTITY_URL, | |
client_id: "YourAuth0ClientId", | |
loadUserInfo : true, | |
post_logout_redirect_uri : SITE_URL + "/your-logout-callback-path", | |
redirect_uri: SITE_URL + "/your-callback-path", | |
response_type: "code", | |
scope: "openid profile yourscope", | |
extraQueryParams: { 'audience': 'YourAuth0AudienceName' }, | |
metadata: { | |
issuer: IDENTITY_URL, | |
authorization_endpoint: IDENTITY_URL + "authorize", | |
userinfo_endpoint: IDENTITY_URL + "userinfo", | |
end_session_endpoint: IDENTITY_URL + "v2/logout?client_id=" + process.env.IDENTITY_CLIENT_ID, | |
jwks_uri: IDENTITY_URL + ".well-known/jwks.json", | |
token_endpoint: IDENTITY_URL + "oauth/token" | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment