"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/trigger/RegisteredServicePrincipalAttributeMultifactorAuthenticationTrigger.java" between
cas-6.0.4.tar.gz and cas-6.0.5.tar.gz

About: CAS (Central Authentication Service) is an authentication system (providing single sign-on service).

RegisteredServicePrincipalAttributeMultifactorAuthenticationTrigger.java  (cas-6.0.4):RegisteredServicePrincipalAttributeMultifactorAuthenticationTrigger.java  (cas-6.0.5)
skipping to change at line 71 skipping to change at line 71
} }
val principal = authentication.getPrincipal(); val principal = authentication.getPrincipal();
val providers = MultifactorAuthenticationUtils.getAuthenticationProvider ForService(registeredService); val providers = MultifactorAuthenticationUtils.getAuthenticationProvider ForService(registeredService);
val result = multifactorAuthenticationProviderResolver.resolveEventViaPr incipalAttribute(principal, val result = multifactorAuthenticationProviderResolver.resolveEventViaPr incipalAttribute(principal,
org.springframework.util.StringUtils.commaDelimitedListToSet(policy. getPrincipalAttributeNameTrigger()), org.springframework.util.StringUtils.commaDelimitedListToSet(policy. getPrincipalAttributeNameTrigger()),
registeredService, Optional.empty(), providers, Pattern.compile(poli cy.getPrincipalAttributeValueToMatch()).asPredicate()); registeredService, Optional.empty(), providers, Pattern.compile(poli cy.getPrincipalAttributeValueToMatch()).asPredicate());
if (result != null && !result.isEmpty()) { if (result != null && !result.isEmpty()) {
val id = CollectionUtils.firstElement(result); val id = CollectionUtils.firstElement(result);
return MultifactorAuthenticationUtils.getMultifactorAuthenticationPr oviderById(id.toString(), ApplicationContextProvider.getApplicationContext()); return MultifactorAuthenticationUtils.getMultifactorAuthenticationPr oviderById(id.get().toString(), ApplicationContextProvider.getApplicationContext ());
} }
return Optional.empty(); return Optional.empty();
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)