Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Add oauth2 support #41

Open
lingster opened this issue Jan 14, 2019 · 2 comments
Open

Add oauth2 support #41

lingster opened this issue Jan 14, 2019 · 2 comments

Comments

@lingster
Copy link
Collaborator

Add Oauth2 support and examples/documentation.

@saundersmatt
Copy link
Contributor

I'm currently django-alexa with an Oauth2 resource protected by django-oidc-provider.
https://django-oidc-provider.readthedocs.io/en/latest/sections/oauth2.html#protecting-views

Calling the URL requires passing the accessToken gained from session['user']['accessToken'] within an intent. This is the passed in html headers with headers = {"Authorization": "Bearer {}".format(access_token)}

@saundersmatt
Copy link
Contributor

Also stumbled across edx-drf-extensions which meets my particular use case of a remote Oauth2 authentication server pretty accurately, https://github.com/edx/edx-drf-extensions/blob/b46d20a9dd446eae1e6dd38127222ff55cf23ecc/edx_rest_framework_extensions/auth/bearer/authentication.py#L16

I think we need to clarify what we mean by "Oauth2 support" as there's a wide range of things that could mean.

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

No branches or pull requests

2 participants