Comments (3)
This can be done using an expression policy:
create an expression policy, use it either as a validation policy for a prompt stage or before a user_write stage, and you can access request.context["prompt_data"]["password"]
and can do whatever validation you want with it.
from authentik.
@BeryJu
But how to check if request.context["prompt_data"]["password"]
matches the user's password?
from authentik.
What I end doing is storing a hashed version of said password and check against it.
I made a small microservice with flask and send the username and hashed password to it from an expression policy as BeryJu explained.
The microservice is running in the same machine as authentik and is not exposed outside docker and it never has the clear passwords.
from authentik.
Related Issues (20)
- Custom Event "expires" time does not reflect System Settings
- LDAP search permissions no longer work HOT 8
- Apple Social Source Not Returning Name on First Login
- Custom workflow for non-standard OAuth2
- Provision System>>Settings>>Avatars via blueprints
- Unable to sync groups from Active Directory
- Update OAuth2 provider scopes in roundcube integration docs HOT 1
- Adding Elestio as deployment option
- Users have to login multiple times a day
- Authentic configuration_error error emails after upgrade 2024.8.2 HOT 2
- OAuth2 Duplicate User Error
- configuration for nginx proxy manager makes host offline HOT 6
- Kubernetes standalone outpost gives Failed to fetch outpost configuration... error="403 Forbidden" HOT 1
- OAuth2 require DB strong consistancy
- OIDC source endpoints misconfigured when deleting an external user HOT 2
- LDAP client can't connect to ldap outpost(2024.8.2) and authentik(2024.8.2)
- Ui HOT 1
- @ HOT 1
- Make Authentik transparent to improve user experience
- authentik only randomly comes online
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from authentik.