loopback icon indicating copy to clipboard operation
loopback copied to clipboard

how do i use passport login for api login

Open gshireesh opened this issue 11 years ago • 7 comments

hi, i am trying to use passport component of strongloop to login into my application, is there any way to use that login to get token for api use?

thanks, Shireesh.

gshireesh avatar Sep 16 '15 19:09 gshireesh

Please see:

https://github.com/strongloop/loopback-component-passport https://github.com/strongloop/loopback-example-passport

By the way, I do not mean to sound critical, but Googling your question first is a much faster way to resolve questions like this.

csvan avatar Sep 17 '15 13:09 csvan

Hi, Thanks for the advise. what i actually meant was related to issue running on loopback-passport-component

https://github.com/strongloop/loopback-component-passport/issues/57

we can login using sessions but its is becoming difficult to get access token in passports local login. we are not having that functionality in current loppbacks passport-local.

I found a temporary solution which i posted in the issue. But if time permits ill make a pull request to the code that might be generic as well.

thanks, Shireesh.

gshireesh avatar Sep 17 '15 14:09 gshireesh

@gshireesh Are you still running into issues? Can I close this? Also, please feel free to submit a PR and I'll try to get it bumped up in priority.

superkhau avatar Sep 22 '15 03:09 superkhau

Not facing issue. I already posted a pull request. Please verify it. Thank you On 22 Sep 2015 08:56, "Simon Ho" [email protected] wrote:

@gshireesh https://github.com/gshireesh Are you still running into issues? Can I close this? Also, please feel free to submit a PR and I'll try to get it bumped up in priority.

— Reply to this email directly or view it on GitHub https://github.com/strongloop/loopback/issues/1678#issuecomment-142169843 .

gshireesh avatar Sep 22 '15 06:09 gshireesh

@gshireesh Can you paste a link to the related PR?

superkhau avatar Sep 22 '15 09:09 superkhau

Hi,

Sorry for delay, here is the link, https://github.com/strongloop/loopback-component-passport/pull/88

please see if any of that code can bee used. and please get back to me if anything can be done to improve my improvement.

thanks, Shireesh.

On Tue, Sep 22, 2015 at 2:39 PM, Simon Ho [email protected] wrote:

@gshireesh https://github.com/gshireesh Can you paste a link to the related PR?

— Reply to this email directly or view it on GitHub https://github.com/strongloop/loopback/issues/1678#issuecomment-142220689 .

gshireesh avatar Sep 24 '15 21:09 gshireesh

@raymondfeng Assigning to you for the code review in the PR mentioned above.

superkhau avatar Sep 25 '15 08:09 superkhau