Skip to content

Instantly share code, notes, and snippets.

@rhysgodfrey
Last active July 5, 2019 13:11
Show Gist options
  • Save rhysgodfrey/6b0d0042f0452a484b34d0302117afca to your computer and use it in GitHub Desktop.
Save rhysgodfrey/6b0d0042f0452a484b34d0302117afca to your computer and use it in GitHub Desktop.
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