Django Login via Azure AD using django auth adfs library

Anonymous
2024-09-26T05:31:01.5633333+00:00

I've created a new user called django in Azure AD and managed to connect to Django project. I have installed the django auth adfs: https://django-auth-adfs.readthedocs.io/en/latest/

Tutorial Link: https://youtu.be/cy7Xk35iiGc

I have followed the tutorial for connecting django to Azure AD, when try to login it showed this page

how can I resolve this:

User's image

My first thought was assigning the group and role for the new user as shown below but it didn't work:

User's image

Any suggestion or solution is appreciated ya.

Microsoft Security | Microsoft Entra | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Akhilesh Vallamkonda 15,320 Reputation points Microsoft External Staff Moderator
    2024-10-03T16:41:16.8533333+00:00

    Hi @Anonymous
    could you check the settings in your Entra ID application are correct, especially the callback URL. It should match the one configured in your Django settings.
    check if you have provided the correct credentials for the Azure AD user django. Make sure you have entered the correct username and password.
    if you still facing the issue, you can check the logs to see if there are any errors.

    0 comments No comments

  2. Steve 0 Reputation points
    2024-10-15T08:51:30.87+00:00

    I am facing similar issue. the app is authenticated from azure and token is also sent but there seems to be some issue with my django app. Looking forward to any proposed solution.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.