Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Feature/adding auth0 guardian #371

Merged
merged 17 commits into from
Apr 19, 2021

Conversation

apamildner
Copy link
Contributor

@apamildner apamildner commented Apr 12, 2021

This PR introduces the auth0_guardian resource which can be used to customize the MFA options. I've built it in a way that should make it easy enough to add the other factors at some point.

Worth noting is that if the phone block is present, it will be enabled, while if it is gone it will be disabled.
I.e this would mean phone is enabled:

resource "auth0_guardian" "foo" {
  policy = "all-applications"

  phone {
    provider = "auth0"
    message_types = ["voice"]
    options {
      enrollment_message = "enroll foo"
      verification_message = "verify foo"
    }
  }

while this would mean phone is disabled (which would make more sense once more options than phone is introduced):

resource "auth0_guardian" "foo" {
  policy = "all-applications"
  }

Proposed Changes

  • Introduces auth0_guardian resource for configuring MFA

Related to #367. This is a reworked PR since the last one had major flaws in Read which was detected after merge, hence the revert #370.
Fixes #286

Acceptance Test Output

$ make testacc TESTS=TestAccGuardian

...

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

@apamildner apamildner force-pushed the feature/adding-auth0-guardian branch from b5c0cb7 to 756838e Compare April 15, 2021 13:59
@apamildner apamildner changed the title [DRAFT] Feature/adding auth0 guardian Feature/adding auth0 guardian Apr 15, 2021
@apamildner apamildner changed the title Feature/adding auth0 guardian [DRAFT]Feature/adding auth0 guardian Apr 15, 2021
@apamildner apamildner force-pushed the feature/adding-auth0-guardian branch from 44290ee to 3156fd7 Compare April 19, 2021 06:20
@apamildner apamildner force-pushed the feature/adding-auth0-guardian branch from 070f96f to 136bf1d Compare April 19, 2021 06:30
@apamildner apamildner changed the title [DRAFT]Feature/adding auth0 guardian Feature/adding auth0 guardian Apr 19, 2021
@yvovandoorn yvovandoorn merged commit eed7741 into alexkappa:master Apr 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support MFA (Guardian) Configuration
2 participants