#oauth-token #oauth2 #oauth #jwt #token

app oauth2token

Obtains OAuth 2.0 tokens

2 releases

0.1.1 Oct 30, 2023
0.1.0 Oct 7, 2023

#363 in Authentication

41 downloads per month

GPL-3.0-or-later

19KB

oauth2token

Obtains OAuth 2.0 tokens

Usage

$ oauth2token [OPTIONS] --grant-type <GRANT_TYPE> --client-id <CLIENT_ID> --client-secret <CLIENT_SECRET> <AUTH_URL>

Arguments:
  <AUTH_URL>  Authentication URL

Options:
  -g, --grant-type <GRANT_TYPE>        OAuth2 grant type [possible values: client_credentials]
  -i, --client-id <CLIENT_ID>          Client ID
  -s, --client-secret <CLIENT_SECRET>  Client Secret
  -r, --response                       Print the whole response instead of just token
  -h, --help                           Print help
  -V, --version                        Print version

License

GPLv3

Dependencies

~4MB
~105K SLoC