-
Notifications
You must be signed in to change notification settings - Fork 134
will this module work with Single page apps, and mobile iOS, android? #11
Comments
I am not familiar with loopback-component-passport, please ask @raymondfeng, he is the person who wrote that module. |
I don't think handling login via native SDK and interaction via REST is supported (yet).
|
Can you tell me how to use the accesstoken? I am still unauthorised when i tried to make a secure call with this in the header. |
Do you set the access token then to your LBRESTAdapter? |
I figured this out. The token is signed so I had to get the unsigned value to make the secure call.
|
Thanks to everyone for their information and for making this example project. I believe that loopback-component-passport needs to add support for passport-facebook-token (https://github.com/drudge/passport-facebook-token) so that we can just send POSTs from the iOS and Android Facebook SDKs, to login with Facebook at least in the correct manner, to then start interacting with the API via mobile. It'd be great if this were to happen and for this example project to be updated when it does. |
1+ @Zeralith |
+1 @Zeralith has there been any progress on this or need any help? |
1+ @Zeralith any update ? |
Can anyone give update if this is now supported? I see the passport-facebook module being used. |
@artmunro Its not. But you can add
Finally fork |
+1 |
@NelsonBrandao, I added
Do you have any Idea about the error ? |
@always-akshat the "TypeError: OAuth2Strategy requires a authorizationURL option" is because of drudge/passport-facebook-token#36 from PassportConfigurator.prototype.configureProvider:
require('passport-facebook-token').Strategy throws the error adding a "strategy" option to the providers.json for the passport-facebook-token module that causes !AuthStrategy to be true worked for me for now |
+1 |
I am not sure if this helps to answer the original issue raised, but I am personally successfully using loopback-passport so that my Android application can use Google OAuth to log into my Loopback backend. I had to spend quite a lot of time on this to get it to work, particularly concerning how to handle the various tokens. I can do a more detailed write-up about this if anyone would like me to. However, briefly off the top of my head, it was something like this:
The only problem I have still to solve is dealing with the auth token TTL. Obviously because it's obtained using OAuth, my app can't store a conventional username/password to get a new one if it needs to. One solution might be to implement a rolling TTL, which I think is what I'm going to do. |
+1 . I think it will be better if this module supports SPA. |
+1 Trying to figure out how to use loopback-component-passport for third-party authentication with my SPA and can't seem to find any good examples. |
Will LB4 support SPA? |
@dosstx LB3 supports SPAs - can't image LB4 wouldn't |
@jackrvaughan Sorry for the confusion. Is it that this module doesn't support SPA? For my SPA (VueJS) with enterprise security service (no social networks), I need to use implicit grant type, hence no client secret needed. Will that be OK for this module? Trying to understand before I spend time working with it for my SPA. Thanks. |
Hi |
Does this support rest login and authenticating all requests for things like angular single page apps, iOS, android etc?
The text was updated successfully, but these errors were encountered: