how do i use passport login for api login
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.
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.
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 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.
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 Can you paste a link to the related PR?
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 .
@raymondfeng Assigning to you for the code review in the PR mentioned above.