Skip to content

Commit

Permalink
Add doc string for the auth token command (#2302)
Browse files Browse the repository at this point in the history
## Changes
The intent of this PR is to clarify that the `databricks auth token`
command is not supported for M2M auth. Fixes:
#1939

## Tests
Manually.
  • Loading branch information
shreyas-goenka authored Feb 7, 2025
1 parent 54e16d5 commit 65ac9a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/auth/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ func newTokenCommand(persistentAuth *auth.PersistentAuth) *cobra.Command {
cmd := &cobra.Command{
Use: "token [HOST]",
Short: "Get authentication token",
Long: `Get authentication token from the local cache in ~/.databricks/token-cache.json.
Refresh the access token if it is expired. Note: This command only works with
U2M authentication (using the 'databricks auth login' command). M2M authentication
using a client ID and secret is not supported.`,
}

var tokenTimeout time.Duration
Expand Down

0 comments on commit 65ac9a3

Please sign in to comment.