Skip to content

Add validation to provider config ID. - #410

Merged
micahstairs merged 1 commit into
idp-configfrom
micahstairs-provider-config-id-validation
May 12, 2020
Merged

Add validation to provider config ID.#410
micahstairs merged 1 commit into
idp-configfrom
micahstairs-provider-config-id-validation

Conversation

@micahstairs

Copy link
Copy Markdown
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.

@lahirumaramba lahirumaramba left a comment

Copy link
Copy Markdown
Member

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

@hiranya911 hiranya911 left a comment

Copy link
Copy Markdown
Contributor

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