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/patternhelloworld/securityhelper/oauth2/client/config/securityimpl/message/CustomSecurityUserExceptionMessage.java
+1
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ public enum CustomSecurityUserExceptionMessage implements ExceptionMessageInterf
27
27
28
28
// GRANT TYPE
29
29
AUTHENTICATION_WRONG_GRANT_TYPE("1Wrong Grant Type detected."),
30
+
AUTHENTICATION_WRONG_COMBINATION_OF_GRANT_TYPE_RESPONSE_TYPE("1Grant Type doesn't match response type."),
Copy file name to clipboardExpand all lines: client/src/main/java/com/patternhelloworld/securityhelper/oauth2/client/config/securityimpl/response/CustomApiAuthenticationSuccessHandlerImpl.java
thrownewEasyPlusOauth2AuthenticationException(EasyPlusErrorMessages.builder().message("Wrong grant type from Req : " + (String) additionalParameters.get("grant_type")).userMessage(iSecurityUserExceptionMessageService.getUserMessage(DefaultSecurityUserExceptionMessage.AUTHENTICATION_WRONG_GRANT_TYPE)).build());
Copy file name to clipboardExpand all lines: client/src/test/java/com/patternhelloworld/securityhelper/oauth2/client/integration/auth/CustomerIntegrationTest.java
+3-34
Original file line number
Diff line number
Diff line change
@@ -449,12 +449,11 @@ public void test_SameAppTokensUseSameAccessToken_ORIGINAL() throws Exception {
headerWithName(HttpHeaders.AUTHORIZATION).description("Connect the received client_id and client_secret with ':', use the base64 function, and write Basic at the beginning. ex) Basic base64(client_id:client_secret)"),
495
-
headerWithName(EasyPlusHttpHeaders.APP_TOKEN).optional().description("Not having a value does not mean you cannot log in, but cases without an App-Token value share the same access_token. Please include it as a required value according to the device-specific session policy.")
496
-
),
497
-
formParameters(
498
-
parameterWithName("grant_type").description("Uses the password method among Oauth2 grant_types. Please write password."),
499
-
parameterWithName("username").description("This is the user's email address."),
500
-
parameterWithName("password").description("This is the user's password.")
Copy file name to clipboardExpand all lines: lib/src/main/java/io/github/patternhelloworld/securityhelper/oauth2/api/config/security/converter/auth/endpoint/AuthorizationCodeAuthorizationRequestConverter.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ public Authentication convert(HttpServletRequest request) {
Copy file name to clipboardExpand all lines: lib/src/main/java/io/github/patternhelloworld/securityhelper/oauth2/api/config/security/converter/auth/endpoint/PasswordAccessTokenRequestConverter.java
Copy file name to clipboardExpand all lines: lib/src/main/java/io/github/patternhelloworld/securityhelper/oauth2/api/config/security/entity/EasyPlusAuthorization.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -141,9 +141,9 @@ public class EasyPlusAuthorization {
Copy file name to clipboardExpand all lines: lib/src/main/java/io/github/patternhelloworld/securityhelper/oauth2/api/config/security/message/DefaultSecurityUserExceptionMessage.java
+1
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ public enum DefaultSecurityUserExceptionMessage implements ExceptionMessageInter
26
26
27
27
// GRANT TYPE
28
28
AUTHENTICATION_WRONG_GRANT_TYPE("Wrong Grant Type detected."),
29
+
AUTHENTICATION_WRONG_COMBINATION_OF_GRANT_TYPE_RESPONSE_TYPE("Grant Type doesn't match response type."),
0 commit comments