Giter VIP home page Giter VIP logo

Comments (6)

KOConchobhair avatar KOConchobhair commented on August 11, 2024 1

@Widcket Take a look at this code (assuming I'm tracing it thru correctly)

CredentialAuth(oidc: self.options.oidcConformant, realm: connection, authentication: self.authentication)

PasswordlessLinkTransaction goes to CredentialAuth which if oidcConformant is true, calls auth0 using the password-realm grant. if false, it uses legacy-ro grant. Neither of which make sense for a magic link with an OTP code...(or at least dont make sense anymore in 2021)

It should instead be using the passwordless OTP grant (which is what $0.passwordlessMethod = .code does)

If I compare this library to Lock.Android, you can see over there it's implemented correctly and here it seems it's just not.

from lock.swift.

Widcket avatar Widcket commented on August 11, 2024 1

@KOConchobhair indeed, it should be using the passwordless OTP grant. It is probably like this for legacy reasons. Will dig into this.

Screen Shot 2021-05-14 at 15 55 22

from lock.swift.

Widcket avatar Widcket commented on August 11, 2024 1

This is out now in v2.22.2.

from lock.swift.

KOConchobhair avatar KOConchobhair commented on August 11, 2024

Like why is PasswordlessLinkTransaction using CredentialAuth when it could be using the following line of code (from PasswordlessInteractor.login)

request = authentication.login(email: identifier, code: passcode, ...)

from lock.swift.

Widcket avatar Widcket commented on August 11, 2024

Hi @KOConchobhair, have you configured Lock with OIDC Conformant mode set to true?

Screen Shot 2021-05-13 at 21 10 45

from lock.swift.

KOConchobhair avatar KOConchobhair commented on August 11, 2024

from lock.swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.