Register the Open edX Instance with Azure Active Directory

89 views
Skip to first unread message

Nathan Hart

unread,
Aug 17, 2018, 5:21:16 PM8/17/18
to Open edX operations
Hi, 

We are running the lastest Hawthorn.


Using Azure Active Directory, when i go to my LMS and click sign in with "Microsoft" it redirects me to an 500 error at: http://FQDN.com/auth/login/azuread-oauth2/?auth_entry=login&next=%2F 

I am getting this error message from: /edx/var/log/lms/edx.log

edxuser@nrgedxr02:/edx/app/edxapp$ sudo tail /edx/var/log/lms/edx.log
    return func(request, backend, *args, **kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/social_django/views.py", line 23, in auth
    return do_auth(request.backend, redirect_name=REDIRECT_FIELD_NAME)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/social_core/actions.py", line 12, in do_auth
    for field_name in backend.setting('FIELDS_STORED_IN_SESSION', []):
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/social_core/backends/base.py", line 31, in setting
    return self.strategy.setting(name, default=default, backend=self)
  File "/edx/app/edxapp/edx-platform/common/djangoapps/third_party_auth/strategy.py", line 34, in setting
    raise Exception("Can't fetch setting of a disabled backend/provider.")
Exception: Can't fetch setting of a disabled backend/provider.

Any ideas or assistance would be appreciated. 

Thank you.


Amos Wachanga

unread,
Aug 26, 2018, 8:22:57 PM8/26/18
to Open edX operations
Hi Nathan,

Could you try ensure the slug is the same name as the backend service which in this case is 'azuread-oauth2'.

Screenshot from 2018-08-26 07-17-50.png









Nathan Hart

unread,
Aug 27, 2018, 9:04:06 PM8/27/18
to Open edX operations
Thanks that was it, i didn't see that in the documentation! 

Thanks again,
Nathan
Reply all
Reply to author
Forward
0 new messages