모바일G/W용 JWT Token 처리
This commit is contained in:
@@ -104,7 +104,7 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap
|
||||
tokenType = vo.getProperty(PROP_TOKEN_TYPE, "JWT");
|
||||
}
|
||||
|
||||
// endpoints.pathMapping("/oauth/token", "/auth/oauth/v2/token");
|
||||
// endpoints.pathMapping("/oauth/token", "/auth/oauth/v2/token") ;
|
||||
endpoints.authenticationManager(authenticationManager);
|
||||
endpoints.userDetailsService(userDetailsService);
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import java.util.Collection;
|
||||
|
||||
public class OAuthRequestLoggingFilter extends OncePerRequestFilter {
|
||||
public class OAuthRequestLoggingFilter extends OncePerRequestFilter {
|
||||
|
||||
@Override
|
||||
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.eactive.eai.authserver.config;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class RequestContextData {
|
||||
public class RequestContextData {
|
||||
private String clientId;
|
||||
private String ipAddress;
|
||||
private String grantType;
|
||||
|
||||
@@ -5,7 +5,7 @@ import java.io.Serializable;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class KjbMGOAuth2AccessTokenRequest implements Serializable {
|
||||
public class KjbMGOAuth2AccessTokenRequest implements Serializable {
|
||||
@JsonProperty("grant_type")
|
||||
private String grantType;
|
||||
@JsonProperty("client_id")
|
||||
|
||||
@@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@JsonInclude(Include.NON_NULL)
|
||||
public class KjbMGOAuth2AccessTokenResponse implements Serializable {
|
||||
public class KjbMGOAuth2AccessTokenResponse implements Serializable {
|
||||
private String responseCode;
|
||||
private String responseMessage;
|
||||
@JsonProperty("access_token")
|
||||
|
||||
@@ -52,7 +52,7 @@ import com.eactive.eai.common.util.UUID;
|
||||
import com.eactive.eai.data.entity.onl.authserver.TokenIssuanceLog;
|
||||
|
||||
@Controller
|
||||
public class KjbMGOAuth2Controller {
|
||||
public class KjbMGOAuth2Controller {
|
||||
public static Logger logger = Logger.getLogger(Logger.LOGGER_DEFAULT);
|
||||
|
||||
private static final String HEADER_TRACEID = "traceId";
|
||||
|
||||
Reference in New Issue
Block a user