Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

Commit 301cd03

Browse files
author
Dominik František Bučík
authored
Merge pull request #44 from dBucik/fix_acrs
fix: 🐛 Fixed missing ACRs code and device_code flows
2 parents bcb0b0b + 4d3b072 commit 301cd03

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

perun-oidc-server/src/main/java/cz/muni/ics/oauth2/model/SavedUserAuthentication.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ public SavedUserAuthentication(Authentication src) {
6666
setName(src.getName());
6767
setAuthorities(new HashSet<>(src.getAuthorities()));
6868
setAuthenticated(src.isAuthenticated());
69-
if (src instanceof ExpiringUsernameAuthenticationToken) {
69+
if (src instanceof SavedUserAuthentication) {
70+
this.setAcr(((SavedUserAuthentication) src).getAcr());
71+
} else if (src instanceof ExpiringUsernameAuthenticationToken) {
7072
ExpiringUsernameAuthenticationToken token = (ExpiringUsernameAuthenticationToken) src;
7173
this.acr = ((SamlPrincipal) token.getPrincipal()).getSamlCredential()
7274
.getAuthenticationAssertion()

0 commit comments

Comments
 (0)