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

    Constructors
    Constructor
    Description
    DefaultOAuth2ApiService(TokenBroker tokenBroker, org.apache.polaris.core.context.CallContext callContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      getToken in interface org.apache.polaris.service.catalog.api.IcebergRestOAuth2ApiService