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

ESD-25022: Add provider to push mfa to fix sns settings not getting propagated #415

Merged
merged 2 commits into from
Dec 14, 2022

Conversation

sergiught
Copy link
Contributor

@sergiught sergiught commented Dec 13, 2022

🔧 Changes

This PR adds the ability to manage the selected provider for MultiFactor Push Notification settings through the auth0_guardian resource.

This is needed because without properly selecting the provider to be sns, even if we update the custom app and sns settings, they won't take effect.

📚 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)

@sergiught sergiught changed the title Fix has change check in guardian push settings Add provider to auth0_guardian.push Dec 14, 2022
@sergiught sergiught force-pushed the patch/ESD-25022-guardian-push-sns branch from 8a3d8a2 to 542b468 Compare December 14, 2022 11:49
@sergiught sergiught changed the title Add provider to auth0_guardian.push ESD-25022: Add provider to auth0_guardian.push Dec 14, 2022
@sergiught sergiught force-pushed the patch/ESD-25022-guardian-push-sns branch from 542b468 to eac67b9 Compare December 14, 2022 17:07
@sergiught sergiught marked this pull request as ready for review December 14, 2022 17:07
@sergiught sergiught requested a review from a team as a code owner December 14, 2022 17:07
"provider": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{"guardian", "sns"}, false),
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 that we aren't currently providing "direct" provider configuration capabilities due to the functionality missing from the go-auth0 SDK. We will need to add support for the following endpoints to achieve that:

PUT /guardian/factors/push-notification/providers/fcm
PUT /guardian/factors/push-notification/providers/apns
PATCH /guardian/factors/push-notification/providers/fcm
PATCH /guardian/factors/push-notification/providers/apns

@sergiught sergiught self-assigned this Dec 14, 2022
Copy link
Contributor

@willvedd willvedd left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@sergiught sergiught merged commit 3c8b8b9 into main Dec 14, 2022
@sergiught sergiught deleted the patch/ESD-25022-guardian-push-sns branch December 14, 2022 17:47
@sergiught sergiught restored the patch/ESD-25022-guardian-push-sns branch December 14, 2022 17:48
@willvedd willvedd deleted the patch/ESD-25022-guardian-push-sns branch December 14, 2022 17:48
@sergiught sergiught restored the patch/ESD-25022-guardian-push-sns branch December 14, 2022 17:49
@sergiught sergiught deleted the patch/ESD-25022-guardian-push-sns branch December 14, 2022 17:50
@sergiught sergiught changed the title ESD-25022: Add provider to auth0_guardian.push ESD-25022: Add provider to push mfa to fix sns settings not getting propagated Dec 14, 2022
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.

2 participants