Skip to content

Commit 5cdf58e

Browse files
kishore-144sebastiaanspeckacuteenvy
authored
oauth2c: add page (#19015)
Co-authored-by: Sebastiaan Speck <[email protected]> Co-authored-by: Lena Pastwa <[email protected]>
1 parent 37bc073 commit 5cdf58e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

pages/common/oauth2c.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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`

0 commit comments

Comments
 (0)