Class TokenRequestValidator

java.lang.Object
org.apache.polaris.service.auth.TokenRequestValidator

public class TokenRequestValidator extends Object
  • Field Details

  • Constructor Details

    • TokenRequestValidator

      public TokenRequestValidator()
      Default constructor
  • Method Details

    • validateForClientCredentialsFlow

      public Optional<OAuthTokenErrorResponse.Error> validateForClientCredentialsFlow(String clientId, String clientSecret, String grantType, String scope)
      Validates the incoming Client Credentials flow.
      • Non-null scope: while optional in the spec we make it required and expect it to conform to the format
      Parameters:
      scope - while optional in the Iceberg REST API Spec we make it required and expect it to conform to the format "PRINCIPAL_ROLE:NAME PRINCIPAL_ROLE:NAME2 ..."