oauth2c

User-friendly CLI tool for OAuth2 authentication and token management

brewmacoslinux
Try with needOr install directly
Source

About

User-friendly CLI for OAuth2

Commands

oauth2c

Examples

Authenticate with an OAuth2 provider and obtain access token$ oauth2c authorize --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET --auth-url https://provider.com/oauth/authorize --token-url https://provider.com/oauth/token
Refresh an existing access token$ oauth2c refresh --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET --refresh-token YOUR_REFRESH_TOKEN --token-url https://provider.com/oauth/token
Make an authenticated API request using stored token$ oauth2c request --token YOUR_ACCESS_TOKEN https://api.provider.com/user/profile