7
7
import static cz .muni .ics .oidc .server .filters .AuthProcFilterConstants .IDP_ENTITY_ID_PREFIX ;
8
8
import static cz .muni .ics .oidc .server .filters .AuthProcFilterConstants .PARAM_CLIENT_ID ;
9
9
import static cz .muni .ics .oidc .server .filters .AuthProcFilterConstants .PARAM_PROMPT ;
10
- import static cz .muni .ics .oidc .server .filters .AuthProcFilterConstants .REFEDS_MFA ;
11
10
12
11
import cz .muni .ics .oidc .models .Facility ;
13
12
import cz .muni .ics .oidc .models .PerunAttributeValue ;
33
32
import org .opensaml .saml2 .metadata .SPSSODescriptor ;
34
33
import org .opensaml .saml2 .metadata .provider .MetadataProviderException ;
35
34
import org .opensaml .ws .message .encoder .MessageEncodingException ;
36
- import org .springframework .beans .factory .annotation .Autowired ;
37
35
import org .springframework .security .core .AuthenticationException ;
38
36
import org .springframework .security .saml .SAMLConstants ;
39
37
import org .springframework .security .saml .SAMLEntryPoint ;
@@ -50,7 +48,6 @@ public class PerunSamlEntryPoint extends SAMLEntryPoint {
50
48
private final FacilityAttrsConfig facilityAttrsConfig ;
51
49
private final SamlProperties samlProperties ;
52
50
53
- @ Autowired
54
51
public PerunSamlEntryPoint (PerunAdapter perunAdapter ,
55
52
PerunOidcConfig config ,
56
53
FacilityAttrsConfig facilityAttrsConfig ,
@@ -140,17 +137,9 @@ protected void initializeSSO(HttpServletRequest request, SAMLMessageContext cont
140
137
private void addExtraParams (HttpServletRequest request , WebSSOProfileOptions options ) {
141
138
log .debug ("Transforming OIDC params to SAML" );
142
139
processAcrValues (request , options );
143
- processForceAuthn (request , options );
144
140
processPrompt (request , options );
145
141
}
146
142
147
- private void processForceAuthn (HttpServletRequest request , WebSSOProfileOptions options ) {
148
- if (PerunSamlUtils .needsReAuthByForceAuthn (request )) {
149
- log .debug ("Transformed forceAuthn parameter to SAML forceAuthn=true" );
150
- options .setForceAuthN (true );
151
- }
152
- }
153
-
154
143
private void processPrompt (HttpServletRequest request , WebSSOProfileOptions options ) {
155
144
if (PerunSamlUtils .needsReAuthByPrompt (request )) {
156
145
log .debug ("Transformed prompt parameter ({}) to SAML forceAuthn=true" ,
@@ -173,11 +162,6 @@ private void processAcrValues(HttpServletRequest request, WebSSOProfileOptions o
173
162
}
174
163
}
175
164
176
- if (PerunSamlUtils .needsReAuthByMfa (request )) {
177
- log .debug ("ACRs include {}, added forceAuthn to proxy request" , REFEDS_MFA );
178
- options .setForceAuthN (true );
179
- }
180
-
181
165
if (StringUtils .hasText (request .getParameter (PARAM_CLIENT_ID )) && config .isAddClientIdToAcrs ()) {
182
166
String clientIdAcr = CLIENT_ID_PREFIX + request .getParameter (PARAM_CLIENT_ID );
183
167
log .debug ("Adding client_id ACR ({}) to list of AuthnContextClassRefs for purposes" +
0 commit comments