LinuxCommandLibrary

oauth2c

OAuth2 CLI client

TLDR

Get access token

$ oauth2c [client_id] [client_secret] --token-url [url]
copy
Authorization code flow
$ oauth2c --auth-url [url] --token-url [url] --redirect-uri [uri]
copy
Client credentials flow
$ oauth2c [client_id] [client_secret] --token-url [url] --grant-type client_credentials
copy
With scopes
$ oauth2c [client_id] [client_secret] --token-url [url] --scope "[scope1 scope2]"
copy

SYNOPSIS

oauth2c [options]

DESCRIPTION

oauth2c is an OAuth2 CLI client. Obtains access tokens interactively.
The tool supports various OAuth2 flows. Useful for API testing.

PARAMETERS

--auth-url URL

Authorization endpoint.
--token-url URL
Token endpoint.
--redirect-uri URI
Redirect URI.
--grant-type TYPE
OAuth2 grant type.
--scope SCOPES
Requested scopes.
--help
Display help information.

CAVEATS

Requires OAuth2 client credentials. Security-sensitive operations.

HISTORY

oauth2c was created to provide command-line OAuth2 authentication for developers.

SEE ALSO

curl(1), httpie(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community