class CatalogCredential
Credential a catalog uses to authenticate against its endpoint. The secret is encrypted so it never leaves the database in plain text.
Constants
- AUTH_METHODS
- PROPERTIES_SECRET_KEYS
-
Provider-specific exchange knobs that are NOT secrets. Anything secret-ish found here (or in Catalog.properties) is rejected - secrets have exactly one home: the encrypted
secretcolumn.
Public Instance Methods
Source
# File app/models/catalog_credential.rb, line 35 def none? = auth_method == "none"
Whether the catalog endpoint requires no authentication. @return [Boolean] true when auth_method is “none”
Source
# File app/models/catalog_credential.rb, line 26 def oauth2? = auth_method == "oauth2_client_credentials"
Whether the credential uses OAuth2 client-credentials authentication. @return [Boolean] true when auth_method is “oauth2_client_credentials”
Source
# File app/models/catalog_credential.rb, line 39 def secret_set? = secret.present?
Whether a secret is currently stored for this credential. @return [Boolean] true when the encrypted secret is present
Source
# File app/models/catalog_credential.rb, line 31 def token_exchange? = auth_method == "oauth2_token_exchange"
Whether the credential uses OAuth2 token exchange (RFC 8693), e.g. a Dremio PAT swapped for a short-lived access token at an external token server. @return [Boolean] true when auth_method is “oauth2_token_exchange”