goauthentik / goauthentik/authentik

Provide custom user mapping logic via expression

Open
#8,979 2 comments 0 reactions 1 assignee Claimed by @rissson View on GitHub
enhancement enhancement/under_consideration
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 1h
Merged PRs (30d)
644

Description

**Is your feature request related to a problem? Please describe.**
When I am trying to add a trusted OIDC provider, I find it difficult with some sources to map to users properly.

Screenshot 2024-03-20 at 16 08 54

**Describe the solution you'd like**
I would like for the ability to provide the usermapping via an Expression, this would allow for me in this instance. Use the subject line in the incoming JWT subject of `project_path:mygroup/myproject:ref_type:branch:ref:main ` and map `project_path:mygroup/myproject*` to `serviceUser_project_001`

If I have not provided that mapping, to just flat out deny auth to that endpoint.

**Describe alternatives you've considered**
Any sort of custom user mapping would be nice, to do something like string matching

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.