Merge remote-tracking branch 'origin/master'
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ public class FeignHttpInterceptorConfig {
|
||||
Enumeration<String> headers = request.getHeaders(CommonConstant.TOKEN_HEADER);
|
||||
while (headers.hasMoreElements()) {
|
||||
String value = headers.nextElement();
|
||||
if ((value.toLowerCase().startsWith(CommonConstant.BEARER_TYPE))) {
|
||||
if ((value.toLowerCase().startsWith(CommonConstant.BEARER_TYPE.toLowerCase()))) {
|
||||
String authHeaderValue = value.substring(CommonConstant.BEARER_TYPE.length()).trim();
|
||||
int commaIndex = authHeaderValue.indexOf(',');
|
||||
if (commaIndex > 0) {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.central.oauth.granter;
|
||||
|
||||
import com.central.oauth2.common.token.MobileAuthenticationToken;
|
||||
import com.central.oauth2.common.token.OpenIdAuthenticationToken;
|
||||
import org.springframework.security.authentication.AbstractAuthenticationToken;
|
||||
import org.springframework.security.authentication.AuthenticationManager;
|
||||
import org.springframework.security.core.Authentication;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.central.oauth.granter;
|
||||
|
||||
import com.central.oauth.service.IValidateCodeService;
|
||||
import com.central.oauth2.common.token.OpenIdAuthenticationToken;
|
||||
import org.springframework.security.authentication.*;
|
||||
import org.springframework.security.core.Authentication;
|
||||
|
||||
Reference in New Issue
Block a user