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

feat(config/flipt.schema.*): add oidc provider scopes property #1946

Merged

Conversation

Provinite
Copy link
Contributor

Description

This PR adds an optional string array field definition for the authentication.methods.oidc.providers.[provider].scopes option to the JSON and CUE schemas for the flipt configuration file.

Notes

I wasn't sure if it was preferable to just use a loose string type, or if a specific enum with the standard OIDC claims of email, profile would be more correct. Let me know if you'd prefer it as an enum instead and I can update.

On CUE

I have no experience with CUE schemas or idea of how to go about validating my change. I read up on the docs and this seemed like the right change there. Apologies if this is making more work than it's resolving 😆.

Thanks for the warm response!

Related Issue

Fixes #1944

@Provinite Provinite requested a review from a team as a code owner August 4, 2023 01:48
@markphelps markphelps enabled auto-merge (squash) August 4, 2023 12:02
Copy link
Collaborator

@markphelps markphelps left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks so much @Provinite!

@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Merging #1946 (4484d3e) into main (ce3c806) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1946   +/-   ##
=======================================
  Coverage   71.07%   71.07%           
=======================================
  Files          67       67           
  Lines        6541     6541           
=======================================
  Hits         4649     4649           
  Misses       1629     1629           
  Partials      263      263           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@markphelps markphelps merged commit afb9d4f into flipt-io:main Aug 4, 2023
22 checks passed
@markphelps
Copy link
Collaborator

@all-contributors please add @Provinite for code

@allcontributors
Copy link
Contributor

@markphelps

I've put up a pull request to add @Provinite! 🎉

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.

[FLI-536] Configuration JSON Schema missing authentication.methods.oidc.providers.[provider].scopes
2 participants