wg-access-server
wg-access-server copied to clipboard
OIDC Azure issue
Hello, I'm having this config
...
scopes:
- openid
- email
- profile
claimMapping:
admin: "'WireguardAdmins' in group_membership"
Also WireguardAdmins group in my OIDC provider (Azure). When I'm tring ti sign in - I'm getting that error:
No parameter 'group_membership' found.
The issue is that with azure token returns groups with value in double array:
map[amr:["pwd","mfa"] family_name:Bilenko given_name:Maksym groups:[["6287e903-8c1f-42fe-8d3d-36e4e7155d5f","0de42929-8f96-4215-9e92-89cd32cfdf76","d4795a7f-2823-4274-8af8-ee83b664f777","2e293763-0fdd-4d2c-9a34-049f9048ae9d"]] ipaddr:62.4.34.189 name:Maksym Bilenko ...
Can't find the way to compare group ID with double array value of groups
The maintained fork is here: https://github.com/freifunkMUC/wg-access-server