Giter VIP home page Giter VIP logo

Comments (13)

BilalDja avatar BilalDja commented on August 19, 2024 1

I guess you can create a customCallback (and pass it in the configuration of the passportConfigurator) and call the passport.authenticate(err, user, info) within.
My personal problem is how to distinguish between a newly created User and just a logged in user??

Edit

This is a gist on how I try to handle it: server.js

from loopback-component-passport.

ataft avatar ataft commented on August 19, 2024 1

+1
I want to add User role mappings to the response. There's a lot going on in the defaultCallback(), so don't think it's a great idea to rewrite that in the customCallback(), but will if there's no other solution.

from loopback-component-passport.

mailuser41 avatar mailuser41 commented on August 19, 2024

bump

from loopback-component-passport.

vburghelea avatar vburghelea commented on August 19, 2024

+1 I'm also trying to figure out how I can hook into the create account / login process so I can extract Facebook profile information and do some processing.

from loopback-component-passport.

superkhau avatar superkhau commented on August 19, 2024

@bajtos @raymondfeng @ritch I'm not sure about this one. Do you guys know?

from loopback-component-passport.

codeyad avatar codeyad commented on August 19, 2024

Can someone please help with this issue?, im trying to look a way to do it, @bajtos @raymondfeng @ritch could you please look at this?

from loopback-component-passport.

bajtos avatar bajtos commented on August 19, 2024

I am personally not familiar with this module. @raymondfeng could you PTAL yourself?

from loopback-component-passport.

mike-aungsan avatar mike-aungsan commented on August 19, 2024

+1
Trying to do the same and looking for doc.

from loopback-component-passport.

codeyad avatar codeyad commented on August 19, 2024

I probably should do my own passport component

from loopback-component-passport.

ghislaindj avatar ghislaindj commented on August 19, 2024

Same problem here !

from loopback-component-passport.

saurabh73 avatar saurabh73 commented on August 19, 2024

Any Update on this???

from loopback-component-passport.

stale avatar stale commented on August 19, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from loopback-component-passport.

stale avatar stale commented on August 19, 2024

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

from loopback-component-passport.

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.