Skip to content

Add validation to provider config ID. #410

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

Merged
merged 1 commit into from
May 12, 2020

Conversation

micahstairs
Copy link
Contributor

The OIDC Auth provider config ID must begin with "oidc.". This validation is being done in other APIs (e.g. Go), so we should do it here as well.

I've moved assertValidUrl to the base class so that it can be reused for SamlProviderConfig, once that class is added.

Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@lahirumaramba lahirumaramba removed their assignment May 12, 2020
Copy link
Contributor

@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@hiranya911 hiranya911 assigned micahstairs and unassigned hiranya911 May 12, 2020
@micahstairs micahstairs merged commit 0aebe37 into idp-config May 12, 2020
@micahstairs micahstairs deleted the micahstairs-provider-config-id-validation branch May 12, 2020 18:00
micahstairs added a commit that referenced this pull request Jun 12, 2020
The OIDC Auth provider config ID must begin with "oidc.". This validation is being done in other APIs (e.g. Go), so we should do it here as well.

I've moved assertValidUrl to the base class so that it can be reused for SamlProviderConfig, once that class is added.
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