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

Support for Login with additional authData #1839

Open
3 tasks done
SteffenKeller opened this issue Jan 26, 2025 · 1 comment · May be fixed by #1848
Open
3 tasks done

Support for Login with additional authData #1839

SteffenKeller opened this issue Jan 26, 2025 · 1 comment · May be fixed by #1848
Labels
type:feature New feature or improvement of existing feature

Comments

@SteffenKeller
Copy link

SteffenKeller commented Jan 26, 2025

New Feature / Enhancement Checklist

Current Limitation

This SDK does currently not support login with additional authData introduced in Parse Server 6 (8156) which is needed to support multi-factor authentication (MFA).

Feature / Enhancement Description

A function to login with additional authData similar to the ParseUser.logInWithAdditionalAuth function in the JS SDK (1955)

Example Use Case

Multi-factor authentication (MFA)

Alternatives / Workarounds

It is possible to log in via the REST API and call PFUser.become(inBackground: sessionToken) with the obtained session token to become the user. The problem with this solution is that the SDK will then include the authData object when saving the PFUser:

{
  "firstName": "updated name",
  "authData": {
    "mfa": {
      "status": "enabled"
    }
  }
}

This prevents successful saving and leads to the following error on the server side since the Parse Server is calling validateUpdate inside the Auth Adapter because of the contained authData:

{
    "authenticationStep": "validateUpdate",
    "error": {
        "code": 141,
        "message": "Invalid MFA token"
    },
    "provider": "mfa",
    "user": "xxxxxxxxxx"
}
Copy link

parse-github-assistant bot commented Jan 26, 2025

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@mtrezza mtrezza added the type:feature New feature or improvement of existing feature label Jan 27, 2025
@SteffenKeller SteffenKeller linked a pull request Mar 4, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or improvement of existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants