mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-01 10:21:26 +08:00
修改权限配置
This commit is contained in:
@@ -28,8 +28,6 @@ public class AuthorizationClientAutoConfiguration implements ImportSelector {
|
||||
case Feign:
|
||||
classNames.add("org.hswebframework.web.authorization.cloud.client.feign.FeignAutoConfiguration");
|
||||
break;
|
||||
case Redis:
|
||||
throw new UnsupportedOperationException("redis not support yet");
|
||||
case Auto:
|
||||
default:
|
||||
try {
|
||||
@@ -37,7 +35,7 @@ public class AuthorizationClientAutoConfiguration implements ImportSelector {
|
||||
classNames.add("org.hswebframework.web.authorization.cloud.client.feign.FeignAutoConfiguration");
|
||||
} catch (ClassNotFoundException e) {
|
||||
// load redis not support yet
|
||||
throw new UnsupportedOperationException("feign client ");
|
||||
throw new UnsupportedOperationException("please import and config feign");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -19,6 +19,6 @@ public @interface EnableAuthorizationClient {
|
||||
Type value() default Type.Auto;
|
||||
|
||||
enum Type {
|
||||
Auto, Feign, Redis
|
||||
Auto, Feign
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,5 +11,5 @@ import org.springframework.context.annotation.Configuration;
|
||||
*/
|
||||
@Configuration
|
||||
@EnableFeignClients("org.hswebframework.web.authorization.cloud.client.feign")
|
||||
public class FeignAutoConfiguration {
|
||||
public class FeignAuthorizationAutoConfiguration {
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package org.hswebframework.web.authorization.cloud.client.redis;
|
||||
|
||||
import org.hswebframework.web.authorization.token.UserTokenManager;
|
||||
|
||||
/**
|
||||
* TODO 完成注释
|
||||
*
|
||||
* @author zhouhao
|
||||
* @since
|
||||
*/
|
||||
public abstract class RedisUserTokenManager implements UserTokenManager {
|
||||
}
|
||||
@@ -100,4 +100,5 @@ public class UserTokenController {
|
||||
public Authentication userAuthInfo(@PathVariable String userId){
|
||||
return authenticationManager.getByUserId(userId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user