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

OAuth2 token bearer authentication #36

Open
kentr opened this issue Mar 26, 2016 · 1 comment
Open

OAuth2 token bearer authentication #36

kentr opened this issue Mar 26, 2016 · 1 comment
Labels

Comments

@kentr
Copy link

kentr commented Mar 26, 2016

I'm looking for a way to use OAuth2 token bearer authentication (with the D8 branch, if it matters).

I don't see any Authorization header in the code, so I'm guessing this isn't currently supported.

Do you know of any jDrupal modules which add the header via hook_rest_pre_process? Or is there a list of existing modules somewhere?

@kentr kentr added the question label Mar 26, 2016
@signalpoint
Copy link
Owner

@kentr The only true jDrupal module is DrupalGap, and then a ton of modules built on top of DrupalGap. It's still possible to make modules for jDrupal, but to my knowledge that hasn't ever been done (except for DrupalGap of course).

As you've noticed, there is no Authorization header support built into jDrupal, as it currently just falls back to session/cookie data. I don't know much about OAuth2, but I'd be happy to lend help making this a reality within jDrupal.

For starters, if you just need to add an Authorization header, then I think hook_rest_pre_process would be the place to do it.

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

No branches or pull requests

2 participants