모바일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");
|
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.authenticationManager(authenticationManager);
|
||||||
endpoints.userDetailsService(userDetailsService);
|
endpoints.userDetailsService(userDetailsService);
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import javax.servlet.http.HttpServletResponse;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
public class OAuthRequestLoggingFilter extends OncePerRequestFilter {
|
public class OAuthRequestLoggingFilter extends OncePerRequestFilter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
|
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package com.eactive.eai.authserver.config;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class RequestContextData {
|
public class RequestContextData {
|
||||||
private String clientId;
|
private String clientId;
|
||||||
private String ipAddress;
|
private String ipAddress;
|
||||||
private String grantType;
|
private String grantType;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import java.io.Serializable;
|
|||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
@SuppressWarnings("serial")
|
@SuppressWarnings("serial")
|
||||||
public class KjbMGOAuth2AccessTokenRequest implements Serializable {
|
public class KjbMGOAuth2AccessTokenRequest implements Serializable {
|
||||||
@JsonProperty("grant_type")
|
@JsonProperty("grant_type")
|
||||||
private String grantType;
|
private String grantType;
|
||||||
@JsonProperty("client_id")
|
@JsonProperty("client_id")
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
|||||||
|
|
||||||
@SuppressWarnings("serial")
|
@SuppressWarnings("serial")
|
||||||
@JsonInclude(Include.NON_NULL)
|
@JsonInclude(Include.NON_NULL)
|
||||||
public class KjbMGOAuth2AccessTokenResponse implements Serializable {
|
public class KjbMGOAuth2AccessTokenResponse implements Serializable {
|
||||||
private String responseCode;
|
private String responseCode;
|
||||||
private String responseMessage;
|
private String responseMessage;
|
||||||
@JsonProperty("access_token")
|
@JsonProperty("access_token")
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ import com.eactive.eai.common.util.UUID;
|
|||||||
import com.eactive.eai.data.entity.onl.authserver.TokenIssuanceLog;
|
import com.eactive.eai.data.entity.onl.authserver.TokenIssuanceLog;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
public class KjbMGOAuth2Controller {
|
public class KjbMGOAuth2Controller {
|
||||||
public static Logger logger = Logger.getLogger(Logger.LOGGER_DEFAULT);
|
public static Logger logger = Logger.getLogger(Logger.LOGGER_DEFAULT);
|
||||||
|
|
||||||
private static final String HEADER_TRACEID = "traceId";
|
private static final String HEADER_TRACEID = "traceId";
|
||||||
|
|||||||
Reference in New Issue
Block a user