When using SAML2 as authentication backend using Authentik as idP group syncing seems flawed.
APP_KEY=base64:/<redacted>
APP_URL=https://bookstack.mydomain.com
DB_HOST=<redacted>
DB_DATABASE=bookstack
DB_USERNAME=bookstack
DB_PASSWORD=<redacted>
STORAGE_TYPE=local_secure
MAIL_DRIVER=smtp
AVATAR_URL=false
MAIL_FROM_NAME="BookStack"
MAIL_FROM=bookstack@mydomain.com
MAIL_HOST=<redacted>.servers.mydomain.com
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
ALLOW_ROBOTS=false
AUTH_METHOD=saml2
SAML2_NAME=SAML
SAML2_EMAIL_ATTRIBUTE=email
SAML2_EXTERNAL_ID_ATTRIBUTE=uid
SAML2_DISPLAY_NAME_ATTRIBUTES=Name
SAML2_IDP_ENTITYID=https://idp.mydomain.com/api/v3/providers/saml/4/metadata/?download
SAML2_AUTOLOAD_METADATA=true
SAML2_USER_TO_GROUPS=true
SAML2_GROUP_ATTRIBUTE=Groups
SAML2_REMOVE_FROM_GROUPS=true
APP_DEBUG=true
"id_from_idp": "user@mydomain.com",
"attrs_from_idp": {
"http://schemas.xmlsoap.org/claims/Group": [
"authentik Admins",
"MFA Enabled",
"bookstack-admin"
],
"http://schemas.goauthentik.io/2021/02/saml/uid": [
"1"
],
"http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname": [
"my"
],
"http://schemas.goauthentik.io/2021/02/saml/username": [
"my"
],
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": [
"My User"
],
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress": [
"user@mydomain.com"
],
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": [
"user@mydomain.com"
]
},
"attrs_after_parsing": {
"external_id": "user@mydomain.com",
"name": "user@mydomain.com",
"email": "user@mydomain.com",
"saml_id": "user@mydomain.com"
}
}
Attempted Debugging
Searched GitHub Issues
Describe the Scenario
When using SAML2 as authentication backend using Authentik as idP group syncing seems flawed.
What I've done
The expected result
Noteworthy
Relevant output
.env file
SAML2 JSON Dump
Exact BookStack Version
v21.11.2
Log Content
No response
PHP Version
PHP 8.0.13 via PHP-FPM
Hosting Environment
Backend
Frontend
DB
IDP