Skip to content

Conversation

@mbilski
Copy link
Contributor

@mbilski mbilski commented Jan 15, 2024

#95 With this change, OAuth2c will validate the client configuration on startup.

❯ oauth2c https://oauth2c.us.authz.cloudentity.io/oauth2c/demo \
  --client-id cauktionbud6q8ftlqq0 \
  --client-secret HCwQ5uuUWBRHd04ivjX5Kl0Rz8zxMOekeLtqzki0GPc \
  --response-types code \
  --response-mode query \
  --grant-type authorization_coe \
  --auth-method client_basic
  ERROR   GrantType must be one of [authorization_code client_credentials implicit password refresh_token urn:ietf:params:oauth:grant-type:jwt-bearer urn:ietf:params:oauth:grant-type:token-exchange urn:ietf:params:oauth:grant-type:device_code]
  ERROR   AuthMethod must be one of [client_secret_basic client_secret_post client_secret_jwt private_key_jwt self_signed_tls_client_auth tls_client_auth none]

This is to prevent issues such as #94

@mbilski mbilski requested a review from ikawalec January 15, 2024 10:53
@mbilski mbilski merged commit 716f308 into master Jan 15, 2024
@mbilski mbilski deleted the feature/validation branch January 15, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants