오류 응답 시 필드 이름 변경(grantType -> grant_type)
This commit is contained in:
@@ -112,7 +112,7 @@ public class DJErpOAuth2Controller {
|
|||||||
if (!StringUtils.equals(grantType, "client_credentials")) {
|
if (!StringUtils.equals(grantType, "client_credentials")) {
|
||||||
throw new JwtAuthException(
|
throw new JwtAuthException(
|
||||||
String.format("%d%s%s", HttpStatus.BAD_REQUEST.value(), SERVICE_CODE_ACCESS_TOKEN, "02"),
|
String.format("%d%s%s", HttpStatus.BAD_REQUEST.value(), SERVICE_CODE_ACCESS_TOKEN, "02"),
|
||||||
"Invalid Mandatory Field {grantType}");
|
"Invalid Mandatory Field {grant_type}");
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] scopeArr = org.springframework.util.StringUtils.tokenizeToStringArray(scopes, " ");
|
String[] scopeArr = org.springframework.util.StringUtils.tokenizeToStringArray(scopes, " ");
|
||||||
|
|||||||
Reference in New Issue
Block a user