django-auth-adfs | Django authentication backend for Microsoft ADFS | Authentication library
kandi X-RAY | django-auth-adfs Summary
kandi X-RAY | django-auth-adfs Summary
A Django authentication backend for Microsoft ADFS and AzureAD
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Build authorization endpoint
- Load OpenID Connect
- Load the Federation Metadata
- Load configuration from ADFS
- Load public keys from a list of certificates
- Return the URL to redirect to
- Authenticate a user
- Create a new User instance
- Validate an access token
- Update user attributes
- Get OBO access token
- Get all group memberships from a MS graph
- Updates a user s attributes
- Returns a list of group membership groups
- Process an access token
- Update a user s group membership
- Build end session endpoint
- Returns the AUTH_ADFS settings
django-auth-adfs Key Features
django-auth-adfs Examples and Code Snippets
Community Discussions
Trending Discussions on django-auth-adfs
QUESTION
I have implemented backend api using django. Environment details are as-
Environment : platform : Linux (ubuntu) framework : Django 1.11.28 programming language : python 2.7.12 (will planning to migrate 3.8 in future) Database : Mongodb 3.4
Description : I have developed web services using django. These are plain web services not Restful( earlier there wasn't full support for mongodb for Django rest framework) hence most of the things are customised not as per django standard.
Issue details : For authentication I am using Azure AD. I have written simple decorator which receives access token from request sent by front web app/mobile then this decorator validates token and return to view.For authentication I am using django-auth-adfs package
decorator authorisation.py ...ANSWER
Answered 2020-Mar-17 at 10:18Well. Let me give your answer sequentially.
- Write a middle-ware and attach the user based on token from database query.
- Create another middle-ware that will allow protected path only if user is authenticated by above (1) middle-ware.
- As django is changing day by day, it will better if you ask separate question when you will be implementing at REST. I know the standard but answering it now may obsolete later.
Now going back to middle-wares. Middle-ware works in order. Invalid order of those may not work
1st middle-ware
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install django-auth-adfs
You can use django-auth-adfs like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page