strongloop/loopback-component-oauth2

Need example using loopback-component-passport

Closed this issue · 3 comments

I have been trying to implement this component with the previously working login setup I had using component-passport.

At the moment I am stuck with the routes. I mean, when I protect '/api' with oauth2 all api routes become authenticated only which mean routes like '/api/users/login' or POST '/api/users' will return 401 Unauthorized.

A full example is much needed.

I did and the jwt authentications works fine. The problem is when trying to support google, facebook or even the angularjs User.login() flow is broken.

loay commented

Hi @JonnyBGod
Here is a full example: https://github.com/strongloop/loopback-example-passport
Please let me know if you have any questions. Regards,