Duke-GCB / D4S2

Web service to facilitate notification and transfer of projects in DukeDS
MIT License
0 stars 0 forks source link

Fix authentication in the latest release #262

Open johnbradley opened 3 years ago

johnbradley commented 3 years ago

Authentication via OAuth is no longer working after upgrading to django3. This may be an issue with the middleware configuration. The following code in gcb_web_auth is failing to find the user even though the token_dict is valid:

    user = authenticate(service=service, token_dict=token_dict)

https://github.com/Duke-GCB/gcb-web-auth/blob/3b5a3c83ab1ebe571f91b09a6c06732416f792d6/gcb_web_auth/views.py#L73

johnbradley commented 3 years ago

I'm going to revert the Django3 upgrade for now.