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 access_token based OAuth2 providers #169

ekryski opened this Issue Apr 21, 2016 · 1 comment


None yet
1 participant
Copy link

ekryski commented Apr 21, 2016

This is more for mobile but some OAuth providers have client side SDKs so that you can get the access_token securely. You can then send that to the server without having to do all the redirects. The server then verifies the access_token, authenticates the user and returns a Feathers JWT.

This is already in place on the server side but not supported client side.

@ekryski ekryski added the Feature label Apr 21, 2016

@ekryski ekryski added this to the 1.0 milestone Apr 21, 2016

@ekryski ekryski added the Backlog label May 21, 2016

@marshallswain marshallswain changed the title Support token based OAuth2 providers Support access_token based OAuth2 providers Oct 22, 2016


This comment has been minimized.

Copy link
Member Author

ekryski commented Nov 21, 2016

This is now supported via feathers-authentication-oauth2.

Simply register your passport token strategy for the provider (ie. FacebookTokenStrategy) instead of the regular strategy (as outlined in the example on that repo) and then make your call from the client like so:

  strategy: 'facebook-token',
  access_token: yourFacebookAccessToken
.then(response => {
  // you are now authenticated

  console.log('Your Feathers access token', response.accessToken);
.catch(error => {
  // handle error
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.