File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ # oauth2c
2+
3+ > Interact with OAuth 2.0 authorization servers.
4+ > More information: < https://github.com/cloudentity/oauth2c#usage > .
5+
6+ - Fetch an access token using client credentials:
7+
8+ ` oauth2c {{issuer_url}} --client-id {{client_id}} --client-secret {{client_secret}} `
9+
10+ - Fetch a token using authorization code flow:
11+
12+ ` oauth2c {{issuer_url}} --client-id {{client_id}} --response-types code `
13+
14+ - Fetch a token using authorization code with PKCE:
15+
16+ ` oauth2c {{issuer_url}} --client-id {{client_id}} --pkce `
17+
18+ - Fetch a token using password credentials:
19+
20+ ` oauth2c {{issuer_url}} --client-id {{client_id}} --username {{username}} --password {{password}} `
21+
22+ - Refresh an existing access token:
23+
24+ ` oauth2c {{issuer_url}} --client-id {{client_id}} --refresh-token {{refresh_token}} `
25+
26+ - Fetch a token with specific scopes:
27+
28+ ` oauth2c {{issuer_url}} --client-id {{client_id}} --scopes {{scope1,scope2}} `
29+
30+ - Use device authorization flow:
31+
32+ ` oauth2c {{issuer_url}} --client-id {{client_id}} --grant-type device_code `
33+
34+ - Run in silent mode without browser:
35+
36+ ` oauth2c {{issuer_url}} --client-id {{client_id}} {{[-s|--silent]}} --no-browser `
You can’t perform that action at this time.
0 commit comments