@@ -42,6 +42,10 @@ const mockSSOApplications = [
42
42
acsAllowedCallbacks : [ ] ,
43
43
subjectNameIdType : '' ,
44
44
subjectNameIdFormat : '' ,
45
+ defaultRelayState : 'rs' ,
46
+ forceAuthentication : false ,
47
+ idpLogoutUrl : 'http://dummyidp.com/logout' ,
48
+ logoutRedirectUrl : 'http://dummy.com/logout' ,
45
49
} ,
46
50
oidcSettings : null ,
47
51
} ,
@@ -57,6 +61,7 @@ const mockSSOApplications = [
57
61
loginPageUrl : 'http://dummy.com/login' ,
58
62
issuer : 'http://dummy.com/issuer' ,
59
63
discoveryUrl : 'http://dummy/discovery' ,
64
+ forceAuthentication : true ,
60
65
} ,
61
66
} ,
62
67
] ;
@@ -87,6 +92,7 @@ describe('Management SSOApplication', () => {
87
92
await management . ssoApplication . createOidcApplication ( {
88
93
name : 'name' ,
89
94
loginPageUrl : 'http://dummy.com' ,
95
+ forceAuthentication : true ,
90
96
} ) ;
91
97
92
98
expect ( mockHttpClient . post ) . toHaveBeenCalledWith (
@@ -98,6 +104,7 @@ describe('Management SSOApplication', () => {
98
104
description : undefined ,
99
105
enabled : true ,
100
106
logo : undefined ,
107
+ forceAuthentication : true ,
101
108
} ,
102
109
{ token : 'key' } ,
103
110
) ;
@@ -129,6 +136,9 @@ describe('Management SSOApplication', () => {
129
136
loginPageUrl : 'http://dummy.com' ,
130
137
useMetadataInfo : true ,
131
138
metadataUrl : 'http://dummy.com/metadata' ,
139
+ defaultRelayState : 'rs' ,
140
+ forceAuthentication : true ,
141
+ logoutRedirectUrl : 'http://dummy.com/logout' ,
132
142
} ) ;
133
143
134
144
expect ( mockHttpClient . post ) . toHaveBeenCalledWith (
@@ -150,6 +160,9 @@ describe('Management SSOApplication', () => {
150
160
acsAllowedCallbacks : undefined ,
151
161
subjectNameIdType : undefined ,
152
162
subjectNameIdFormat : undefined ,
163
+ defaultRelayState : 'rs' ,
164
+ forceAuthentication : true ,
165
+ logoutRedirectUrl : 'http://dummy.com/logout' ,
153
166
} ,
154
167
{ token : 'key' } ,
155
168
) ;
@@ -242,6 +255,7 @@ describe('Management SSOApplication', () => {
242
255
description : undefined ,
243
256
enabled : false ,
244
257
logo : undefined ,
258
+ forceAuthentication : undefined ,
245
259
} ,
246
260
{ token : 'key' } ,
247
261
) ;
@@ -295,6 +309,9 @@ describe('Management SSOApplication', () => {
295
309
acsAllowedCallbacks : undefined ,
296
310
subjectNameIdType : undefined ,
297
311
subjectNameIdFormat : undefined ,
312
+ defaultRelayState : undefined ,
313
+ forceAuthentication : undefined ,
314
+ logoutRedirectUrl : undefined ,
298
315
} ,
299
316
{ token : 'key' } ,
300
317
) ;
0 commit comments