unitycatalog.auth¶
The classes of the auth API.
Classes
| Name | Description |
|---|---|
AuthMode |
How the web UI signs in, and where its "Log out" goes. |
OAuthTokenExchangeInfo |
An OAuth 2.0 token exchange response (RFC 8693): a Unity Catalog access token. |
TokenResponse |
An OAuth 2.0 token response (RFC 6749, section 5.1). The access token is the personal access token itself. |
class unitycatalog.auth.AuthMode¶
How the web UI signs in, and where its "Log out" goes.
Attributes
- logout_url (str | None) – Where "Log out" goes. Absent: the web UI hides "Log out".
- mode (str) – How the web UI signs in:
oidc(with the OpenID Connect provider of the server),forward(through an auth proxy in front of the server),none(no sign-in in the browser) oroff(authorization is off, and no one signs in).uc webanswerstoken: the browser uses the token of theuccommands.
class unitycatalog.auth.OAuthTokenExchangeInfo¶
An OAuth 2.0 token exchange response (RFC 8693): a Unity Catalog access token.
Attributes
- access_token (str) – The Unity Catalog access token.
- expires_in (int) – Lifetime of the access token, in seconds.
- issued_token_type (str) – The type of the issued token:
urn:ietf:params:oauth:token-type:access_token. - token_type (str) – How to send the token:
Bearer.
class unitycatalog.auth.TokenResponse¶
An OAuth 2.0 token response (RFC 6749, section 5.1). The access token is the personal access token itself.
Attributes
- access_token (str) – The access token: the personal access token of the request.
- expires_in (int) – Seconds until the token expires: the time until the token of
client_idexpires, else 3600. - scope (str | None) – The scope of the request.
- token_type (str) – How to send the token:
Bearer.