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

Add support for authorization code flow in auth module #37

Open
itsravenous opened this issue Apr 15, 2016 · 0 comments
Open

Add support for authorization code flow in auth module #37

itsravenous opened this issue Apr 15, 2016 · 0 comments

Comments

@itsravenous
Copy link
Contributor

zooniverse/planetary-response-network uses the authorization code flow instead of implicit because our app is a server app. Currently we're doing the code/access token gaining manually (well, via PassportJS). We then stuff the access token into the apiClient in the same way as the auth module does (apiClient.headers.Authorization = 'Bearer ACCESS_TOKEN_HERE'). This is OK, but it means we have to handle the refresh token stuff ourselves, instead of getting it for free with the auth module, which we would if we were using implicit flow.

Is there an appetite for a PR adding support for code flow? I know most of the Panoptes apps are front end so implicit works fine for them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant