Package org.apache.polaris.service.auth
Class DefaultOAuth2ApiService
java.lang.Object
org.apache.polaris.service.auth.DefaultOAuth2ApiService
- All Implemented Interfaces:
org.apache.polaris.service.catalog.api.IcebergRestOAuth2ApiService
@RequestScoped
@Identifier("default")
public class DefaultOAuth2ApiService
extends Object
implements org.apache.polaris.service.catalog.api.IcebergRestOAuth2ApiService
Default implementation of the
IcebergRestOAuth2ApiService that generates a JWT token for
the client if the client secret matches.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultOAuth2ApiService(TokenBroker tokenBroker, org.apache.polaris.core.context.CallContext callContext) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsegetToken(String authHeader, String grantType, String scope, String clientId, String clientSecret, org.apache.polaris.service.types.TokenType requestedTokenType, String subjectToken, org.apache.polaris.service.types.TokenType subjectTokenType, String actorToken, org.apache.polaris.service.types.TokenType actorTokenType, org.apache.polaris.core.context.RealmContext realmContext, jakarta.ws.rs.core.SecurityContext securityContext)
-
Constructor Details
-
DefaultOAuth2ApiService
@Inject public DefaultOAuth2ApiService(TokenBroker tokenBroker, org.apache.polaris.core.context.CallContext callContext)
-
-
Method Details
-
getToken
public jakarta.ws.rs.core.Response getToken(String authHeader, String grantType, String scope, String clientId, String clientSecret, org.apache.polaris.service.types.TokenType requestedTokenType, String subjectToken, org.apache.polaris.service.types.TokenType subjectTokenType, String actorToken, org.apache.polaris.service.types.TokenType actorTokenType, org.apache.polaris.core.context.RealmContext realmContext, jakarta.ws.rs.core.SecurityContext securityContext) - Specified by:
getTokenin interfaceorg.apache.polaris.service.catalog.api.IcebergRestOAuth2ApiService
-