Skip to content

JumpCloud provider requests MFA when user doesn't exist #552

Description

@iainelder

I had to refer to the source code to solve a strange login problem I had. It seems the code makes a false assumption.

// Check if we get a 401. If we did, MFA is required and the OTP was not provided.

// Check if we get a 401. If we did, MFA is required and the OTP was not provided.
// Get the OTP and resubmit.

Not necessarily. You also get a 401 if the "username" is incorrect.

I don't have MFA configured on my JumpCloud user.

In my case, I was putting the actual JumpCloud username (aws-sandbox) instead of the email address (aws-sandbox@example.com) which is what the JumpCloud login console page really expects.

I don't see a way to disable the MFA prompt. That may be because I'm new to this tool, but I didn't see it in the README.

Failing that, is there a way to programmatically distinguish 401 for lack of MFA and 401 for incorrect credentials? I'm also new to Jumpcloud so I don't know if that's possible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions