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

Add missing scope tags to connection options #269

Merged
merged 2 commits into from
Aug 29, 2023
Merged

Conversation

sergiught
Copy link
Contributor

🔧 Changes

Through https://github.com/auth0/go-auth0/pull/263/files we introduced the ExtGroups and ExtProfile properties on the ConnectionOptionsPingFederate and ConnectionOptionsSAML, however the scope tag was missed. This PR addresses that.

To note also that unfortunately now we have inconsistent ways of describing the same attribute accepted by the API:

ext_groups

  • ConnectionOptionsPingFederate.ExtGroups
  • ConnectionOptionsSAML.ExtGroups
  • ConnectionOptionsAzureAD.Groups
  • ConnectionOptionsGoogleApps.Groups

ext_profile

  • ConnectionOptionsPingFederate.ExtProfile
  • ConnectionOptionsSAML.ExtProfile
  • ConnectionOptionsGoogleApps.ExtendedProfile
  • ConnectionOptionsAzureAD.ExtendedProfile

📚 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-commenter commented Aug 27, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (ac7326c) 94.78% compared to head (4626383) 94.79%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #269   +/-   ##
=======================================
  Coverage   94.78%   94.79%           
=======================================
  Files          46       46           
  Lines        8733     8738    +5     
=======================================
+ Hits         8278     8283    +5     
  Misses        353      353           
  Partials      102      102           
Files Changed Coverage Δ
management/connection.go 75.00% <ø> (ø)
management/management.gen.go 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sergiught sergiught marked this pull request as ready for review August 28, 2023 06:29
@sergiught sergiught requested a review from a team as a code owner August 28, 2023 06:29
@@ -861,6 +861,8 @@ type ConnectionOptionsAD struct {

UpstreamParams map[string]interface{} `json:"upstream_params,omitempty"`

Thumbprints *[]string `json:"thumbprints,omitempty"`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This also seems to have been missed from the AD connection options type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To note also that the SAML conn type has thumbprints defined as []interface{} instead.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the SAML property was added before the schema repo so we didn't know the type of it?

@sergiught sergiught merged commit 4e0d47c into main Aug 29, 2023
4 checks passed
@sergiught sergiught deleted the patch/conn-scopes branch August 29, 2023 14:37
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.

4 participants