Skip to content

Commit

Permalink
Merge pull request #329 from SpyTec/patch-2
Browse files Browse the repository at this point in the history
fix(Middleware): Check settings for callback URL
  • Loading branch information
akatsoulas committed Dec 23, 2019
2 parents 2718148 + f268c25 commit 8cb98ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mozilla_django_oidc/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def process_request(self, request):
'client_id': client_id,
'redirect_uri': absolutify(
request,
reverse('oidc_authentication_callback')
reverse(self.get_settings('OIDC_AUTHENTICATION_CALLBACK_URL',
'oidc_authentication_callback'))
),
'state': state,
'scope': self.get_settings('OIDC_RP_SCOPES', 'openid email'),
Expand Down

0 comments on commit 8cb98ad

Please sign in to comment.