You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client/src/main/java/com/patternknife/securityhelper/oauth2/client/config/response/error/exception/auth/CustomAuthGuardException.java
Copy file name to clipboardExpand all lines: client/src/main/java/com/patternknife/securityhelper/oauth2/client/config/securityimpl/guard/AccessTokenUserInfo.java
* If you are using another Resource server, this class must also be located in com.patternknife.securityhelper.oauth2.interestedtreatmentpart.dto.security.
16
+
*
17
+
* AccessTokenUserInfo, which implements both UserDetails and OAuth2AuthenticatedPrincipal.
18
+
* You can understand the reasoning behind this by reviewing AccessTokenUserInfoResolver and CustomResourceServerTokenIntrospector.
19
+
*
20
+
* If you are using a different Resource Server while setting patternknife.securityhelper.oauth2.introspection.type=database in application.properties, this class must also be located in the com.patternknife.securityhelper.oauth2.interestedtreatmentpart.dto.security package due to the token generation algorithm.
Copy file name to clipboardExpand all lines: client/src/main/java/com/patternknife/securityhelper/oauth2/client/config/securityimpl/guard/UserCustomerOnlyImpl.java
Copy file name to clipboardExpand all lines: client/src/main/java/com/patternknife/securityhelper/oauth2/client/config/securityimpl/serivce/userdetail/CustomerDetailsService.java
+4
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,10 @@ public void setEntityManager(EntityManager entityManager) {
51
51
this.entityManager = entityManager;
52
52
}
53
53
54
+
/*
55
+
* Here, I return an instance of AccessTokenUserInfo, which implements both UserDetails and OAuth2AuthenticatedPrincipal.
56
+
* You can understand the reasoning behind this by reviewing AccessTokenUserInfoResolver and CustomResourceServerTokenIntrospector.
0 commit comments