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

[3/3] DXCDT-232: Add validation on identity_api for waad connections #361

Merged
merged 3 commits into from
Oct 19, 2022

Conversation

sergiught
Copy link
Contributor

🔧 Changes

We are adding validation on connection.options.identity_api to only allow "microsoft-identity-platform-v2.0" or "azure-active-directory-v1.0" so it is in line with the error message we get from the API if we pass anything different:

{ "statusCode": 400, "error": "Bad Request", "message": "The identity_api property contains an invalid value. Valid values are 'azure-active-directory-v1.0', 'microsoft-identity-platform-v2.0'", "errorCode": "invalid_body" }

📚 References

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@codecov-commenter
Copy link

Codecov Report

Base: 86.81% // Head: 86.81% // No change to project coverage 👍

Coverage data is based on head (89f666b) compared to base (c48755f).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #361   +/-   ##
=======================================
  Coverage   86.81%   86.81%           
=======================================
  Files          40       40           
  Lines        8527     8527           
=======================================
  Hits         7403     7403           
  Misses        863      863           
  Partials      261      261           
Impacted Files Coverage Δ
internal/provider/resource_auth0_connection.go 73.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sergiught sergiught changed the title DXCDT-232: Add validation on identity_api for waad connections [3/3] DXCDT-232: Add validation on identity_api for waad connections Oct 18, 2022
@sergiught sergiught marked this pull request as ready for review October 18, 2022 13:54
@sergiught sergiught requested a review from a team as a code owner October 18, 2022 13:54
* Fix update behavior or client_metadata

* [1/3] DXCDT-243: Improve precision of branding theme fields with float64 instead of int (#369)

Improve precision of branding theme fields with float64 instead of int
@sergiught sergiught merged commit 82aa8d3 into main Oct 19, 2022
@sergiught sergiught deleted the patch/DXCDT-232-waad branch October 19, 2022 05:44
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