Package org.apache.polaris.service.auth
Class TokenRequestValidator
java.lang.Object
org.apache.polaris.service.auth.TokenRequestValidator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidateForClientCredentialsFlow(String clientId, String clientSecret, String grantType, String scope) Validates the incoming Client Credentials flow.
-
Field Details
-
TOKEN_EXCHANGE
- See Also:
-
CLIENT_CREDENTIALS
- See Also:
-
ALLOWED_GRANT_TYPES
-
-
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 ..."
-