You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`GrpcSecurityConfigurerAdapter` should not fail if oauth2 dependencies are not on classpath.
`BasicAuthSchemeSelector` and `BearerTokenAuthSchemeSelector` are now Spring beans,
`GrpcSecurityConfigurerAdapter` registers them to `authenticationSchemeService` automatically
if they are in context.
`BearerTokenAuthSchemeSelector` has condition for instantiation:
```java
@bean
@ConditionalOnClass(name = {
"org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken",
"org.springframework.security.oauth2.core.OAuth2AuthenticationException"})
public BearerTokenAuthSchemeSelector bearerTokenAuthSchemeSelector() {
return new BearerTokenAuthSchemeSelector();
}
```
Copy file name to clipboardExpand all lines: grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc/security/GrpcSecurityConfigurerAdapter.java
0 commit comments