Slide 77
Slide 77 text
import { authInterceptor, provideAuth }
from 'angular-auth-oidc-client';
export const appConfig = {
providers: [
// ...
provideAuth({
config: {
authority: '...',
redirectUrl: window.location.origin,
clientId: '...',
scope: '...',
responseType: 'code',
silentRenew: true,
useRefreshToken: true,
postLogoutRedirectUri: window.location.origin,
customParamsAuthRequest: {
audience: '...',
},
secureRoutes: ['...'],
},
}),
],
};
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
provideAuth({
}),
import { authInterceptor, provideAuth }
1
from 'angular-auth-oidc-client';
2
3
export const appConfig = {
4
providers: [
5
// ...
6
7
config: {
8
authority: '...',
9
redirectUrl: window.location.origin,
10
clientId: '...',
11
scope: '...',
12
responseType: 'code',
13
silentRenew: true,
14
useRefreshToken: true,
15
postLogoutRedirectUri: window.location.origin,
16
customParamsAuthRequest: {
17
audience: '...',
18
},
19
secureRoutes: ['...'],
20
},
21
22
],
23
};
24
authority: '...',
import { authInterceptor, provideAuth }
1
from 'angular-auth-oidc-client';
2
3
export const appConfig = {
4
providers: [
5
// ...
6
provideAuth({
7
config: {
8
9
redirectUrl: window.location.origin,
10
clientId: '...',
11
scope: '...',
12
responseType: 'code',
13
silentRenew: true,
14
useRefreshToken: true,
15
postLogoutRedirectUri: window.location.origin,
16
customParamsAuthRequest: {
17
audience: '...',
18
},
19
secureRoutes: ['...'],
20
},
21
}),
22
],
23
};
24
redirectUrl: window.location.origin,
import { authInterceptor, provideAuth }
1
from 'angular-auth-oidc-client';
2
3
export const appConfig = {
4
providers: [
5
// ...
6
provideAuth({
7
config: {
8
authority: '...',
9
10
clientId: '...',
11
scope: '...',
12
responseType: 'code',
13
silentRenew: true,
14
useRefreshToken: true,
15
postLogoutRedirectUri: window.location.origin,
16
customParamsAuthRequest: {
17
audience: '...',
18
},
19
secureRoutes: ['...'],
20
},
21
}),
22
],
23
};
24
clientId: '...',
import { authInterceptor, provideAuth }
1
from 'angular-auth-oidc-client';
2
3
export const appConfig = {
4
providers: [
5
// ...
6
provideAuth({
7
config: {
8
authority: '...',
9
redirectUrl: window.location.origin,
10
11
scope: '...',
12
responseType: 'code',
13
silentRenew: true,
14
useRefreshToken: true,
15
postLogoutRedirectUri: window.location.origin,
16
customParamsAuthRequest: {
17
audience: '...',
18
},
19
secureRoutes: ['...'],
20
},
21
}),
22
],
23
};
24
scope: '...',
import { authInterceptor, provideAuth }
1
from 'angular-auth-oidc-client';
2
3
export const appConfig = {
4
providers: [
5
// ...
6
provideAuth({
7
config: {
8
authority: '...',
9
redirectUrl: window.location.origin,
10
clientId: '...',
11
12
responseType: 'code',
13
silentRenew: true,
14
useRefreshToken: true,
15
postLogoutRedirectUri: window.location.origin,
16
customParamsAuthRequest: {
17
audience: '...',
18
},
19
secureRoutes: ['...'],
20
},
21
}),
22
],
23
};
24
responseType: 'code',
import { authInterceptor, provideAuth }
1
from 'angular-auth-oidc-client';
2
3
export const appConfig = {
4
providers: [
5
// ...
6
provideAuth({
7
config: {
8
authority: '...',
9
redirectUrl: window.location.origin,
10
clientId: '...',
11
scope: '...',
12
13
silentRenew: true,
14
useRefreshToken: true,
15
postLogoutRedirectUri: window.location.origin,
16
customParamsAuthRequest: {
17
audience: '...',
18
},
19
secureRoutes: ['...'],
20
},
21
}),
22
],
23
};
24
silentRenew: true,
useRefreshToken: true,
import { authInterceptor, provideAuth }
1
from 'angular-auth-oidc-client';
2
3
export const appConfig = {
4
providers: [
5
// ...
6
provideAuth({
7
config: {
8
authority: '...',
9
redirectUrl: window.location.origin,
10
clientId: '...',
11
scope: '...',
12
responseType: 'code',
13
14
15
postLogoutRedirectUri: window.location.origin,
16
customParamsAuthRequest: {
17
audience: '...',
18
},
19
secureRoutes: ['...'],
20
},
21
}),
22
],
23
};
24
postLogoutRedirectUri: window.location.origin,
import { authInterceptor, provideAuth }
1
from 'angular-auth-oidc-client';
2
3
export const appConfig = {
4
providers: [
5
// ...
6
provideAuth({
7
config: {
8
authority: '...',
9
redirectUrl: window.location.origin,
10
clientId: '...',
11
scope: '...',
12
responseType: 'code',
13
silentRenew: true,
14
useRefreshToken: true,
15
16
customParamsAuthRequest: {
17
audience: '...',
18
},
19
secureRoutes: ['...'],
20
},
21
}),
22
],
23
};
24
customParamsAuthRequest: {
audience: '...',
},
import { authInterceptor, provideAuth }
1
from 'angular-auth-oidc-client';
2
3
export const appConfig = {
4
providers: [
5
// ...
6
provideAuth({
7
config: {
8
authority: '...',
9
redirectUrl: window.location.origin,
10
clientId: '...',
11
scope: '...',
12
responseType: 'code',
13
silentRenew: true,
14
useRefreshToken: true,
15
postLogoutRedirectUri: window.location.origin,
16
17
18
19
secureRoutes: ['...'],
20
},
21
}),
22
],
23
};
24
secureRoutes: ['...'],
import { authInterceptor, provideAuth }
1
from 'angular-auth-oidc-client';
2
3
export const appConfig = {
4
providers: [
5
// ...
6
provideAuth({
7
config: {
8
authority: '...',
9
redirectUrl: window.location.origin,
10
clientId: '...',
11
scope: '...',
12
responseType: 'code',
13
silentRenew: true,
14
useRefreshToken: true,
15
postLogoutRedirectUri: window.location.origin,
16
customParamsAuthRequest: {
17
audience: '...',
18
},
19
20
},
21
}),
22
],
23
};
24
import { authInterceptor, provideAuth }
from 'angular-auth-oidc-client';
export const appConfig = {
providers: [
// ...
provideAuth({
config: {
authority: '...',
redirectUrl: window.location.origin,
clientId: '...',
scope: '...',
responseType: 'code',
silentRenew: true,
useRefreshToken: true,
postLogoutRedirectUri: window.location.origin,
customParamsAuthRequest: {
audience: '...',
},
secureRoutes: ['...'],
},
}),
],
};
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24