auth0 / auth0-python

Auth0 SDK for Python
https://auth0-python.readthedocs.io
MIT License
506 stars 164 forks source link

Add functions to manage Guardian settings available via the REST API, e.g. available message types. #567

Open mardav10 opened 9 months ago

mardav10 commented 9 months ago

Checklist

Describe the problem you'd like to have solved

I've been unable to find functions in the SDK to manage the following settings:

Selecting the sms provider PUT /api/v2/guardian/factors/sms/selected-provider https://auth0.com/docs/api/management/v2/guardian/put-sms-providers Auth0 UI: Security / Multi-factor Auth / Phone Message / Choose a delivery provider

Setting the available message types for the SMS (Phone) factor PUT /api/v2/guardian/factors/phone/message-types https://auth0.com/docs/api/management/v2/guardian/put-message-types Auth0 UI: Security / Multi-factor Auth / Phone Message / Choose a delivery method

Setting the policy for when to require multi-factor auth Possible settings in the UI are: "Never" / "Use Adaptive MFA" / "Always" UI: Security / Multi-factor Auth / Define policies

Describe the ideal solution

Expand the SDK with new functions or modify existing functions to support this functionality.

Alternatives and current workarounds

I haven't found a work around using the SDK, but it is of course possible to use the REST API directly.

Additional context

No response