Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Identity Information read #151

Open
shakthifuture opened this issue Oct 5, 2020 · 9 comments
Open

User Identity Information read #151

shakthifuture opened this issue Oct 5, 2020 · 9 comments

Comments

@shakthifuture
Copy link

I have implemented Django Saml2 Auth in my application, It's working very well.

I want to get the user information from azure. While debugging I am able to see the user_identity, Now I need to get the user_identity which is available in the library here I don't know how to read the value from my application.

@romcab
Copy link

romcab commented Oct 6, 2020

hi @shakthifuture,
may i know the django version you are using? i'm trying to use it on my portal using django 3.1 and no luck.

@shakthifuture
Copy link
Author

hi @romcab, I am using Django version 3.0.

@romcab
Copy link

romcab commented Oct 6, 2020

hi @shakthifuture,
so 3.x is supported.

if you don't mind, can you share your settings.py? or can i share with you my settings and see potential errors? thanks in advance.

@shakthifuture
Copy link
Author

@romcab
Copy link

romcab commented Oct 6, 2020

@shakthifuture thanks for sharing, got the name_id_format and attributes map correctly. A follow-up question though.
'ASSERTION_URL': 'https://127.0.0.1:8000', is this the portal or ADFS IDP endpoint?
'ENTITY_ID': 'http://samltoolkit/xxxxx-437a-430e-a63a-125f2c210e52' is this the entityID value found in metadata.xml?
?appid=xx-4dd1-4429-83d4-xxx', is this visible in metadata.xml as well?

the only info i have are the following.

  • SSO URL
  • URL:
  • ADFS IDP endpoint:
  • ADFS entity ID:

thanks!

@shakthifuture
Copy link
Author

Hi @romcab , Why you are changing the topic? My actual problem still not yet resolved. Please post your question in a separate thread or channel which didn't affect others.

@shakthifuture
Copy link
Author

@romcab
Copy link

romcab commented Oct 7, 2020

Thanks @shakthifuture.

i don't have access to our Azure Active Directory, i was just provided with the needed information. I already asked help to our support to validate my configuration. I will update here once done to share also my learnings.

Thank you for your support.

@romcab
Copy link

romcab commented Oct 7, 2020

hi @shakthifuture
was able to make it work after working with our support team with access to the SSO server.
what really helps me is the use of saml tracer which allows me to read the req/resp between my app and the adfs server. now, i would be looking at using https://hub.docker.com/r/kristophjunge/test-saml-idp/ at this container to easily test my application locally. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants