Resubida app de ejemplo, la anterior no logueaba.
This commit is contained in:
34
src/app/auth.config.ts
Normal file
34
src/app/auth.config.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
// This api will come in the next version
|
||||
|
||||
import { AuthConfig } from 'angular-oauth2-oidc';
|
||||
|
||||
export const authConfig: AuthConfig = {
|
||||
// Url of the Identity Provider
|
||||
issuer: 'https://idsvr4.azurewebsites.net',
|
||||
|
||||
// URL of the SPA to redirect the user to after login
|
||||
// redirectUri: window.location.origin
|
||||
// + ((localStorage.getItem('useHashLocationStrategy') === 'true')
|
||||
// ? '/#/index.html'
|
||||
// : '/index.html'),
|
||||
|
||||
redirectUri: window.location.origin + '/index.html',
|
||||
|
||||
// URL of the SPA to redirect the user after silent refresh
|
||||
silentRefreshRedirectUri: window.location.origin + '/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',
|
||||
|
||||
// silentRefreshShowIFrame: true,
|
||||
|
||||
showDebugInformation: true,
|
||||
|
||||
sessionChecksEnabled: true
|
||||
|
||||
// timeoutFactor: 0.01,
|
||||
};
|
||||
Reference in New Issue
Block a user