-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Attempted Debugging
- I have read the debugging page
Searched GitHub Issues
- I have searched GitHub for the issue.
Describe the Scenario
I followed the SAML guide https://www.youtube.com/watch?v=szweYsAow88 and set it up the same way, but for Google.
However it doesn't work. Trying the "Test SAML Login" in the Google Admin Dashboard throws the following error:
- That’s an error.
Error: not_a_saml_app
Provided application is not a SAML app
Request Details
idpid=***
spid=***
forceauthn=falseThat’s all we know.
Trying to login in Bookstack results in this error:
- That’s an error.
Error: app_not_configured_for_user
Service is not configured for this user.
Request Details
idpid=***
SAMLRequest=***
RelayState=https://domain.com/saml2/acsThat’s all we know.
.env:
AUTH_METHOD=saml2
SAML2_NAME="Google SSO"
SAML2_EMAIL_ATTRIBUTE=email
SAML2_EXTERNAL_ID_ATTRIBUTE=id
SAML2_DISPLAY_NAME_ATTRIBUTES=first_name|last_name
SAML2_IDP_ENTITYID=https://accounts.google.com/o/saml2?idpid=***
SAML2_AUTOLOAD_METADATA=false
SAML2_IDP_SSO=https://accounts.google.com/o/saml2/idp?idpid=***
SAML2_IDP_x509="-----BEGIN CERTIFICATE----- *** -----END CERTIFICATE-----"
SAML2_IDP_AUTHNCONTEXT=true
Google:
ACS URL: https://domain.com/saml2/acs
Entity ID: https://domain.com/saml2/metadataName ID format => EMAIL
Name ID => Basic Information > Primary emailMappings:
Primary email => email First name => first_name Last name => last_name Employee ID => id
I noticed that the Name ID format in Bookstack is by default emailAddress
. I tried using the default one and manually changing it to email
but it didn't help anything.
I made sure to set my account to be able to use the added SAML app.
Is this a Bookstack issue? A Google configuration issue? I'm stumped.
Exact BookStack Version
v22.03
Log Content
No response
PHP Version
7.4
Hosting Environment
Apache, Debian