Skip to content

Instantly share code, notes, and snippets.

@lankaapura
Last active December 10, 2017 02:59
Show Gist options
  • Save lankaapura/8ba4780047da867213998f4a03f5de65 to your computer and use it in GitHub Desktop.
Save lankaapura/8ba4780047da867213998f4a03f5de65 to your computer and use it in GitHub Desktop.
export const authConfig: AuthConfig = {
// Url of the Identity Provider
issuer: "https://demo.identityserver.io",
requireHttps: true,
// URL of the SPA to redirect the user to after login
redirectUri: "http://localhost:2020/",
// URL of the SPA to redirect the user after silent refresh
silentRefreshRedirectUri: "http://localhost:2020/silent-refresh.html",
// The SPA's id. The SPA is registerd with this id at the auth-server
clientId: "implicit",
// set the scope for the permissions the client should request
// The first three are defined by OIDC. The 4th is a usecase-specific one
scope: "openid profile email api",
showDebugInformation: true,
sessionChecksEnabled: true
};
export const authConfig: AuthConfig = {
// Url of the Identity Provider
issuer: "https://demo.identityserver.io",
requireHttps: true,
// URL of the SPA to redirect the user to after login
redirectUri: "http://localhost:2020/",
// URL of the SPA to redirect the user after silent refresh
silentRefreshRedirectUri: "http://localhost:2020/silent-refresh.html",
// The SPA's id. The SPA is registerd with this id at the auth-server
clientId: "implicit",
// set the scope for the permissions the client should request
// The first three are defined by OIDC. The 4th is a usecase-specific one
scope: "openid profile email api",
showDebugInformation: true,
sessionChecksEnabled: true
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment