django-alexa icon indicating copy to clipboard operation
django-alexa copied to clipboard

Add oauth2 support

Open lingster opened this issue 6 years ago • 2 comments

Add Oauth2 support and examples/documentation.

lingster avatar Jan 14 '19 09:01 lingster

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 avatar Jan 18 '19 16:01 saundersmatt

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.

saundersmatt avatar Jan 19 '19 20:01 saundersmatt