Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mobile authentication via OAuth2 #46

ekryski opened this Issue Feb 8, 2016 · 1 comment


None yet
1 participant
Copy link

ekryski commented Feb 8, 2016

The OAuth stuff that is about to land will work just fine on mobile if you are inside a browser. However, if you are talking to feathers from a native app or from React Native you won't be able to follow the redirects that are required for the OAuth flow. Therefore, we need to optionally support token based social auth like passport-facebook-token where you would already have the access token from authenticating with the OAuth provider on the mobile device.

My thought is that a developer can include the this strategy and pass it as a tokenStrategy option. If that option is passed we set up that token strategy (potentially along side the regular strategy) and then map that to the create service method (ie. POST /auth/facebook).

@ekryski ekryski changed the title Support mobile authentication via OAuth Support mobile authentication via OAuth2 Feb 8, 2016

@ekryski ekryski modified the milestone: 1.0 release Feb 11, 2016

@ekryski ekryski closed this in fffeacf Feb 25, 2016

ekryski added a commit that referenced this issue Feb 25, 2016

Merge pull request #77 from feathersjs/mobile-auth
Adding support for OAuth2 token based auth strategies. Closes #46.

This comment has been minimized.

Copy link
Member Author

ekryski commented Feb 25, 2016

There may be some backend work to do still to support redirect's for deep linking back to an app on mobile devices. Will reopen or create a new issue if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.