use of org.springframework.cloud.gcp.security.firebase.FirebaseTokenValidator in project spring-cloud-gcp by spring-cloud.
the class FirebaseAuthenticationAutoConfiguration method firebaseJwtDelegatingValidator.
@Bean
@ConditionalOnMissingBean(name = "firebaseJwtDelegatingValidator")
public DelegatingOAuth2TokenValidator<Jwt> firebaseJwtDelegatingValidator(JwtIssuerValidator jwtIssuerValidator, GcpProjectIdProvider gcpProjectIdProvider) {
List<OAuth2TokenValidator<Jwt>> validators = new ArrayList<>();
validators.add(new JwtTimestampValidator());
validators.add(jwtIssuerValidator);
validators.add(new FirebaseTokenValidator(projectId));
return new DelegatingOAuth2TokenValidator<>(validators);
}
Aggregations