This commit is contained in:
KomachiSion 2021-10-09 14:08:04 +08:00
parent 77afc50350
commit 986b125a81
5 changed files with 24 additions and 2 deletions

View File

@ -24,6 +24,11 @@ import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* Identity context builder for Grpc.
*
* @author Nacos
*/
public class GrpcIdentityContextBuilder implements IdentityContextBuilder<Request> {
AuthConfigs authConfigs;
@ -53,4 +58,4 @@ public class GrpcIdentityContextBuilder implements IdentityContextBuilder<Reques
}
return identityContext;
}
}
}

View File

@ -25,6 +25,11 @@ import java.util.Enumeration;
import java.util.HashSet;
import java.util.Set;
/**
* Identity context builder for HTTP.
*
* @author Nacos
*/
public class HttpIdentityContextBuilder implements IdentityContextBuilder<HttpServletRequest> {
private AuthConfigs authConfigs;
@ -71,4 +76,4 @@ public class HttpIdentityContextBuilder implements IdentityContextBuilder<HttpSe
}
return identityContext;
}
}
}

View File

@ -23,6 +23,8 @@ import java.util.List;
/**
* Page.
* copy from config module for resolving circular dependency.
*
* @author boyan
*/
public class Page<E> implements Serializable {

View File

@ -10,6 +10,11 @@ import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
/**
* Auth persist service for embedded storage.
*
* @author Nacos
*/
@Conditional(value = ConditionOnEmbeddedStorage.class)
@Component
public class AuthEmbeddedStoragePersistServiceImpl {

View File

@ -26,6 +26,11 @@ import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
/**
* Auth persist service for external storage.
*
* @author Nacos
*/
@SuppressWarnings(value = {"PMD.MethodReturnWrapperTypeRule", "checkstyle:linelength"})
@Conditional(value = ConditionOnExternalStorage.class)
@Component