|
2 | 2 |
|
3 | 3 | import { AuthConfig } from 'angular-oauth2-oidc'; |
4 | 4 |
|
5 | | -export const authPasswordFlowConfig: AuthConfig = { |
6 | | - // Url of the Identity Provider |
7 | | - issuer: 'https://id.weihanli.xyz', |
8 | | - |
9 | | - // URL of the SPA to redirect the user to after login |
10 | | - redirectUri: window.location.origin + '/account/callback', |
11 | | - |
12 | | - // The SPA's id. The SPA is registerd with this id at the auth-server |
13 | | - clientId: 'reservation-angular-client', |
14 | | - |
15 | | - dummyClientSecret: 'f6f1f917-0899-ef36-63c8-84728f411e7c', |
16 | | - |
17 | | - // set the scope for the permissions the client should request |
18 | | - // The first three are defined by OIDC. The 4th is a usecase-specific one |
19 | | - scope: 'openid profile', |
20 | | - |
21 | | - showDebugInformation: true, |
22 | | - |
23 | | - oidc: false |
24 | | -}; |
25 | | - |
26 | 5 | export const authCodeFlowConfig: AuthConfig = { |
27 | 6 | issuer: 'https://id.weihanli.xyz', |
28 | 7 |
|
29 | 8 | // URL of the SPA to redirect the user to after login |
30 | | - redirectUri: window.location.origin + '/account/callback', |
| 9 | + // redirectUri: window.location.origin + '/account/callback', |
| 10 | + redirectUri: 'http://localhost:4200' + '/account/callback', |
31 | 11 |
|
32 | 12 | // The SPA's id. The SPA is registerd with this id at the auth-server |
33 | 13 | // clientId: 'server.code', |
|
0 commit comments