Giter Club home page Giter Club logo

Comments (3)

uncle-tee avatar uncle-tee commented on June 3, 2024 1

This sounds very interesting at a high level. The client would still need to know how to manage the user. For example, Firebase Authentication works in a similar way. Once the login is completed, Firebase sends an access token, which then needs to be verified on your server to ensure it was generated by Firebase. This verification is necessary because the authentication flow is initiated in the front end.

In the case of Nango, it seems that the front-end client will call Nango for authorization, providing only the desired provider for SSO. Nango will handle the authorization process and retrieve user information from the selected provider. Afterwards, Nango will generate a JWT token containing the user's sub, audience, email, and name, based on the user info. This JWT token can be added to a redirect URL provided by the client.

When the client logs a user in, they will need to call back to Nango to verify that the token was indeed created by Nango. During token verification, Nango will return the user's email and a connection ID (generated by Nango). In this case, Nango can use the email as the connection ID. All this will only be possible for providers that have user info endpoint.

I would like to know if this solution would be useful for the users, and I am happy to proceed with it. If needed, I can also provide a rough flow diagram for better visualization.

from nango.

metcoder95 avatar metcoder95 commented on June 3, 2024

I've seen several tickets regarding fragmented support for the OAuth2 spec, what are the current ones supported, and there are other flows that might be considered?

For now, it seems:

  • implicit-flow seems to be missed
  • OIDC (seems the case for calendly)
  • any other?

from nango.

bastienbeurier avatar bastienbeurier commented on June 3, 2024

Moved to internal issue tracker

from nango.

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.