All apps/oauth2l

oauth2l

oauth2l

A command-line tool for Google OAuth 2.0 authentication.

Runs as oauth2l|macOS, Linux, Windows|github.com

Command form

ai-draft · 2 tasks · 15 fields

Fetch access tokens or an Authorization header. Other commands (curl, info, test, reset) and STS/impersonation options are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui oauth2l

oauth2l fetch

Fetch an access token
Fetch an access tokenExample values, fixed in this page — nothing here reaches a terminal
Basic
Credentials JSON
file
Scopes*
string
TasksEach one presets the form for one job
Fetch an access token
credentialsscope
ParametersOnly these flags are editable in the form
Credentials JSON
path
--credentials
Scopes
Comma-separated, no spaces, e.g. cloud-platform,pubsub.
string
--scope
Authentication type
enum
--typeoauthjwtsso
Audience (JWT)
url
--audience
Email (SSO or delegation)
string
--email
Cache file
path
--cache
Refresh cached token
boolean
--refresh
Output format
enum
--output_formatbareheaderjsonjson_compactprettyrefresh_token

oauth2l header

Print an Authorization header
Print an Authorization headerExample values, fixed in this page — nothing here reaches a terminal
Basic
Credentials JSON
file
Scopes*
string
TasksEach one presets the form for one job
Print an Authorization header
credentialsscope
ParametersOnly these flags are editable in the form
Credentials JSON
path
--credentials
Scopes
Comma-separated, no spaces, e.g. cloud-platform,pubsub.
string
--scope
Authentication type
enum
--typeoauthjwtsso
Audience (JWT)
url
--audience
Email (SSO or delegation)
string
--email
Cache file
path
--cache
Refresh cached token
boolean
--refresh
SourcesEvery flag above is checked against these
readme
$ oauth2l fetch --credentials ~/your_credentials.json --scope cloud-platform $ oauth2l fetch --scope userinfo.email,cloud-platform $ oauth2l header --scope cloud-platform $ oauth2l fetch --type jwt --credentials ~/service_account.json --audience https://pubsub.googleapis.com/ $ oauth2l fetch --cache ~/different_path/.oauth2l --scope cloud-platform $ oauth2l…
helpmaster

github.com

readme
$ oauth2l fetch --credentials ~/your_credentials.json --scope cloud-platform $ oauth2l fetch --scope userinfo.email,cloud-platform $ oauth2l header --scope cloud-platform $ oauth2l fetch --type jwt --credentials ~/service_account.json --audience https://pubsub.googleapis.com/ $ oauth2l fetch --cache ~/different_path/.oauth2l --scope cloud-platform $ oauth2l…
helpmaster

github.com

Before it fills your prompt, Otty checks the installed oauth2l against its version. A form that does not match your version is not offered.