Skip to content

Commit 9482aa8

Browse files
authored
Add flags (#21)
1 parent 3e41fdd commit 9482aa8

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,30 @@ To use `oauth2c`, run the following command and follow the prompts:
3636
oauth2c [issuer url] [flags]
3737
```
3838

39-
You will be asked to provide the necessary information, such as the grant type, client authentication method, and any other relevant details.
39+
The available flags are:
40+
41+
``` sh
42+
--assertion string claims for jwt bearer assertion
43+
--auth-method string token endpoint authentication method
44+
--client-id string client identifier
45+
--client-secret string client secret
46+
--grant-type string grant type
47+
--insecure allow insecure connections
48+
--no-pkce disable proof key for code exchange (PKCE)
49+
--password string resource owner password credentials grant flow password
50+
--pkce enable proof key for code exchange (PKCE)
51+
--refresh-token string refresh token
52+
--response-mode string response mode
53+
--response-types strings response type
54+
--scopes strings requested scopes
55+
--signing-key string path or url to signing key in jwks format
56+
--tls-cert string path to tls cert pem file
57+
--tls-key string path to tls key pem file
58+
--tls-root-ca string path to tls root ca pem file
59+
--username string resource owner password credentials grant flow username
60+
```
61+
62+
You will be asked to provide the necessary information, such as the grant type, client authentication method, and any other relevant details (if not already provided).
4063

4164
Once authenticated, you will be able to use the access token to access the OAuth2 provider's API.
4265

0 commit comments

Comments
 (0)