There was an error while loading. Please reload this page.
1 parent a7905c9 commit 8416739Copy full SHA for 8416739
openid-connect-common/src/main/java/org/mitre/oauth2/model/SavedUserAuthentication.java
@@ -67,7 +67,13 @@ public SavedUserAuthentication(Authentication src) {
67
setName(src.getName());
68
setAuthorities(src.getAuthorities());
69
setAuthenticated(src.isAuthenticated());
70
-setSourceClass(src.getClass().getName());
+
71
+if (src instanceof SavedUserAuthentication) {
72
+// if we're copying in a saved auth, carry over the original class name
73
+setSourceClass(((SavedUserAuthentication) src).getSourceClass());
74
+} else {
75
+setSourceClass(src.getClass().getName());
76
+}
77
}
78
79
/**
0 commit comments