How to change the OAuth token lifetime and the maximum number of OAuth tokens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 07:11 PM
Hi team,
I’m working on generating an OAuth token using a service principal, following the instructions here: https://docs.databricks.com/en/dev-tools/auth/oauth-m2m.html#language-CLI, specifically the section on manually generating a workspace-level access token with the API (https://<databricks-instance>/oidc/v1/token).
However, I've encountered two issues:
I’m unable to customize the token expiration time. I’ve tried parameters like lifetime_seconds and expires_in, but they don’t seem to work. Could you clarify the correct parameter to use for setting a custom token lifetime?
If the token expiration is indeed fixed at 1 hour, what is the maximum number of OAuth tokens that can be generated within my workspace or account? (within 1 hour or 1 day)
Thanks in advance for your help!