Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config validation #96

Merged
merged 3 commits into from
Jan 15, 2024
Merged

Config validation #96

merged 3 commits into from
Jan 15, 2024

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
4 checks passed
@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.

None yet

2 participants