Merge pull request #44 from dBucik/fix_acrs
fix: 🐛 Fixed missing ACRs code and device_code flows
pull/1580/head
commit
301cd03190
|
@ -66,7 +66,9 @@ public class SavedUserAuthentication implements Authentication {
|
|||
setName(src.getName());
|
||||
setAuthorities(new HashSet<>(src.getAuthorities()));
|
||||
setAuthenticated(src.isAuthenticated());
|
||||
if (src instanceof ExpiringUsernameAuthenticationToken) {
|
||||
if (src instanceof SavedUserAuthentication) {
|
||||
this.setAcr(((SavedUserAuthentication) src).getAcr());
|
||||
} else if (src instanceof ExpiringUsernameAuthenticationToken) {
|
||||
ExpiringUsernameAuthenticationToken token = (ExpiringUsernameAuthenticationToken) src;
|
||||
this.acr = ((SamlPrincipal) token.getPrincipal()).getSamlCredential()
|
||||
.getAuthenticationAssertion()
|
||||
|
|
Loading…
Reference in New Issue