File tree Expand file tree Collapse file tree 8 files changed +17
-7
lines changed
admin-gui/src/assets/config
consolidator/src/assets/config
password-reset/src/assets/config
publications/src/assets/config
user-profile/src/assets/config Expand file tree Collapse file tree 8 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 20
20
"oauth_redirect_uri" : " http://localhost:4200/api-callback" ,
21
21
"oauth_scopes" : " openid profile perun_api perun_admin offline_access" ,
22
22
"oauth_response_type" : " code" ,
23
- "oauth_offline_access_consent_prompt" : true
23
+ "oauth_offline_access_consent_prompt" : true ,
24
+ "oauth_acr_value" : " urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport https://refeds.org/profile/sfa https://refeds.org/profile/mfa"
24
25
},
25
26
"proxy_logout" : true ,
26
27
"mfa" : {
Original file line number Diff line number Diff line change 11
11
"oauth_scopes" : " openid profile perun_api perun_admin offline_access target user_identifiers" ,
12
12
"oauth_response_type" : " code" ,
13
13
"user_info_endpoint_url" : " https://proxy.aai.muni.cz/OIDC/userinfo" ,
14
- "oauth_offline_access_consent_prompt" : true
14
+ "oauth_offline_access_consent_prompt" : true ,
15
+ "oauth_acr_value" : " urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport https://refeds.org/profile/sfa https://refeds.org/profile/mfa"
15
16
},
16
17
"proxy_logout" : true ,
17
18
"mfa" : {
Original file line number Diff line number Diff line change 10
10
"oauth_load_user_info" : true ,
11
11
"oauth_scopes" : " openid profile perun_api offline_access target user_identifiers" ,
12
12
"oauth_response_type" : " code" ,
13
- "oauth_offline_access_consent_prompt" : true
13
+ "oauth_offline_access_consent_prompt" : true ,
14
+ "oauth_acr_value" : " urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport https://refeds.org/profile/sfa https://refeds.org/profile/mfa"
14
15
},
15
16
"mfa" : {
16
17
"url_en" : " https://mfa.id.muni.cz/"
Original file line number Diff line number Diff line change 12
12
"oauth_redirect_uri" : " http://localhost:4200/api-callback" ,
13
13
"oauth_scopes" : " openid profile perun_api offline_access" ,
14
14
"oauth_response_type" : " code" ,
15
- "oauth_offline_access_consent_prompt" : true
15
+ "oauth_offline_access_consent_prompt" : true ,
16
+ "oauth_acr_value" : " urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport https://refeds.org/profile/sfa https://refeds.org/profile/mfa"
16
17
},
17
18
"mfa" : {
18
19
"url_en" : " https://mfa.id.muni.cz/"
Original file line number Diff line number Diff line change 11
11
"oauth_redirect_uri" : " http://localhost:4200/api-callback" ,
12
12
"oauth_scopes" : " openid profile perun_api perun_admin offline_access" ,
13
13
"oauth_response_type" : " code" ,
14
- "oauth_offline_access_consent_prompt" : true
14
+ "oauth_offline_access_consent_prompt" : true ,
15
+ "oauth_acr_value" : " urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport https://refeds.org/profile/sfa https://refeds.org/profile/mfa"
15
16
},
16
17
"proxy_logout" : true ,
17
18
"mfa" : {
Original file line number Diff line number Diff line change 18
18
"oauth_redirect_uri" : " http://localhost:4200/api-callback" ,
19
19
"oauth_scopes" : " openid profile perun_api offline_access" ,
20
20
"oauth_response_type" : " code" ,
21
- "oauth_offline_access_consent_prompt" : true
21
+ "oauth_offline_access_consent_prompt" : true ,
22
+ "oauth_acr_value" : " urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport https://refeds.org/profile/sfa https://refeds.org/profile/mfa"
22
23
},
23
24
"proxy_logout" : true ,
24
25
"password_namespace_attributes" : [
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export interface OidcClient {
9
9
user_info_endpoint_url : string ;
10
10
filters : Record < string , string > ;
11
11
oauth_offline_access_consent_prompt : boolean ;
12
+ oauth_acr_value : string ;
12
13
}
13
14
14
15
interface PerunTheme {
Original file line number Diff line number Diff line change @@ -103,8 +103,11 @@ export class AuthService {
103
103
//So the refreshing of the token is not triggered by multiple tabs at the same time
104
104
const timeoutFactor = 0.5 + randomSalt ;
105
105
106
- const customQueryParams = ! filterValue ? { } : { acr_values : filterValue } ;
107
106
const oidcClientProperties : OidcClient = this . store . getProperty ( 'oidc_client' ) ;
107
+ const acr = oidcClientProperties . oauth_acr_value ;
108
+ const customQueryParams = ! filterValue
109
+ ? { acr_values : acr }
110
+ : { acr_values : filterValue + ' ' + acr } ;
108
111
if (
109
112
oidcClientProperties . oauth_scopes . split ( ' ' ) . includes ( 'offline_access' ) &&
110
113
oidcClientProperties . oauth_offline_access_consent_prompt
You can’t perform that action at this time.
0 commit comments