Skip to content

Commit

Permalink
fix docs (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoeg committed Jan 18, 2024
1 parent ee3acb9 commit 32f609b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ See [Interactions](#interactions) for more examples.
It uses a oauth2 authentication model for interacting with the server.
Specifically the Device Authorization flow.

This must be set up using the command-line arguments:
This must be set up using the environment variables:

`--idp-url` pointing to your IdP where there must be an endpoint `{idp-url}/v1/token` for exchanging tokens.
`HAMCTL_OAUTH_IDP_URL` pointing to your IdP where there must be an endpoint `{idp-url}/v1/token` for exchanging tokens.

`--client-id` which is the oauth2 client id.
`HAMCTL_OAUTH_CLIENT_ID` which is the oauth2 client id.

`hamctl` will automatically initiate a login if you do not have a valid token on your system.
You can opt out of this behaviour by setting the environement variable `HAMCTL_OAUTH_AUTO_LOGIN=false`.
Expand Down

0 comments on commit 32f609b

Please sign in to comment.