Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

Adding support for OAuth2 token based auth strategies. Closes #46. #77

Merged
merged 3 commits into from
Feb 25, 2016

Conversation

ekryski
Copy link
Member

@ekryski ekryski commented Feb 24, 2016

This adds support for authenticating via OAuth tokens if a tokenService is configured by POSTing an auth_token to a Feathers OAuth service. For example:

POST /auth/facebook { "auth_token": "your token" }

This allows a mobile (or some other device) to not have to embed the clientID and clientSecret and just let the server manage that. Most of the time this is when a mobile client does authentication between apps.

An example of a token strategy would be: https://github.com/drudge/passport-facebook-token.

.catch(reject);
});

middleware(params.req, params.res, function() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was probably just for debug right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol yup. I was just opening PRs last night for visibility. I still have some work to do in this branch depending on how we want to support OAuth redirects back for mobile.

@ekryski
Copy link
Member Author

ekryski commented Feb 24, 2016

Going to roll this in as a minor release because the generator, generates code that needs this in order to work. If there is any client side specific stuff that needs to happen for React Native we can deal with that in another PR.

ekryski added a commit that referenced this pull request Feb 25, 2016
Adding support for OAuth2 token based auth strategies. Closes #46.
@ekryski ekryski merged commit 013badf into master Feb 25, 2016
@ekryski ekryski deleted the mobile-auth branch February 25, 2016 06:20
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants