@@ -83,45 +83,54 @@ oauth2c [issuer url] [flags]
8383The available flags are:
8484
8585``` sh
86- --acr-values strings ACR values
87- --actor-token string acting party token
88- --actor-token-type string acting party token type
89- --assertion string claims for jwt bearer assertion
90- --audience strings requested audience
91- --auth-method string token endpoint authentication method
92- --browser-timeout duration browser timeout (default 10m0s)
93- --claims string use claims
94- --client-id string client identifier
95- --client-secret string client secret
96- --dpop use DPoP
97- --encrypted-request-object pass request parameters as encrypted jwt
98- --encryption-key string path or url to encryption key in jwks format
99- --grant-type string grant type
100- -h, --help help for oauthc
101- --http-timeout duration http client timeout (default 1m0s)
102- --id-token-hint string id token hint
103- --idp-hint string identity provider hint
104- --insecure allow insecure connections
105- --login-hint string user identifier hint
106- --no-prompt disable prompt
107- --par enable pushed authorization requests (PAR)
108- --password string resource owner password credentials grant flow password
109- --pkce enable proof key for code exchange (PKCE)
110- --rar string use rich authorization request (RAR)
111- --redirect-url string client redirect url (default " http://localhost:9876/callback" )
112- --refresh-token string refresh token
113- --request-object pass request parameters as jwt
114- --response-mode string response mode
115- --response-types strings response type
116- --scopes strings requested scopes
117- --signing-key string path or url to signing key in jwks format
118- -s, --silent silent mode
119- --subject-token string third party token
120- --subject-token-type string third party token type
121- --tls-cert string path to tls cert pem file
122- --tls-key string path to tls key pem file
123- --tls-root-ca string path to tls root ca pem file
124- --username string resource owner password credentials grant flow username
86+ --acr-values strings ACR values
87+ --actor-token string acting party token
88+ --actor-token-type string acting party token type
89+ --assertion string claims for jwt bearer assertion
90+ --audience strings requested audience
91+ --auth-method string token endpoint authentication method
92+ --authorization-endpoint string server' s authorization endpoint
93+ --browser-timeout duration browser timeout (default 10m0s)
94+ --callback-tls-cert string path to callback tls cert pem file
95+ --callback-tls-key string path to callback tls key pem file
96+ --claims string use claims
97+ --client-id string client identifier
98+ --client-secret string client secret
99+ --device-authorization-endpoint string server' s device authorization endpoint
100+ --dpop use DPoP
101+ --encrypted-request-object pass request parameters as encrypted jwt
102+ --encryption-key string path or url to encryption key in jwks format
103+ --grant-type string grant type
104+ -h, --help help for oauth2c
105+ --http-timeout duration http client timeout (default 1m0s)
106+ --id-token-hint string id token hint
107+ --idp-hint string identity provider hint
108+ --insecure allow insecure connections
109+ --login-hint string user identifier hint
110+ --mtls-pushed-authorization-request-endpoint string server' s mtls pushed authorization request endpoint
111+ --mtls-token-endpoint string server' s mtls token endpoint
112+ --no-prompt disable prompt
113+ --par enable pushed authorization requests (PAR)
114+ --password string resource owner password credentials grant flow password
115+ --pkce enable proof key for code exchange (PKCE)
116+ --purpose string string describing the purpose for obtaining End-User authorization
117+ --pushed-authorization-request-endpoint string server' s pushed authorization request endpoint
118+ --rar string use rich authorization request (RAR)
119+ --redirect-url string client redirect url (default "http://localhost:9876/callback")
120+ --refresh-token string refresh token
121+ --request-object pass request parameters as jwt
122+ --response-mode string response mode
123+ --response-types strings response type
124+ --scopes strings requested scopes
125+ --signing-key string path or url to signing key in jwks format
126+ -s, --silent silent mode
127+ --subject-token string third party token
128+ --subject-token-type string third party token type
129+ --tls-cert string path to tls cert pem file
130+ --tls-key string path to tls key pem file
131+ --tls-root-ca string path to tls root ca pem file
132+ --token-endpoint string server' s token endpoint
133+ --username string resource owner password credentials grant flow username
125134```
126135
127136` oauth2c ` opens a browser for flows such as authorization code and starts an
@@ -710,6 +719,22 @@ oauth2c https://oauth2c.us.authz.cloudentity.io/oauth2c/demo \
710719 --callback-tls-key https://raw.githubusercontent.com/cloudentity/oauth2c/master/data/key.pem
711720```
712721
722+ #### Specifying Authorization Server's Endpoint Manually
723+
724+ If your authorization server does not support OIDC, you can specify the endpoint manually using flags.
725+
726+ ``` sh
727+ oauth2c https://oauth2c.us.authz.cloudentity.io/oauth2c/demo \
728+ --client-id cauktionbud6q8ftlqq0 \
729+ --client-secret HCwQ5uuUWBRHd04ivjX5Kl0Rz8zxMOekeLtqzki0GPc \
730+ --response-types code \
731+ --response-mode query \
732+ --grant-type authorization_code \
733+ --auth-method client_secret_basic \
734+ --token-endpoint https://oauth2c.us.authz.cloudentity.io/oauth2c/demo/oauth2/token \
735+ --authorization-endpoint https://oauth2c.us.authz.cloudentity.io/oauth2c/demo/oauth2/authorize
736+ ```
737+
713738## License
714739
715740` oauth2c ` is released under the
0 commit comments