Class GrpcAuthenticationConfiguration
java.lang.Object
ir.msob.jima.security.api.grpc.oauth2.GrpcAuthenticationConfiguration
GrpcAuthenticationConfiguration is a Spring configuration class responsible for creating and configuring
the gRPC authentication reader bean used in the gRPC server for OAuth2 JWT-based authentication.
The class defines a bean for the GrpcAuthenticationReader interface, utilizing the
BearerAuthenticationReader for handling authentication based on JWT tokens. The authentication reader is
configured with a JwtDecoder and a custom JwtRoleConverter to convert JWT claims into roles.
This configuration is essential for setting up the authentication mechanism for gRPC services using OAuth2 JWT tokens.
- Author:
- Yaqub Abdi
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GrpcAuthenticationConfiguration
public GrpcAuthenticationConfiguration()
-