#[Solved ]Bookstack SAML display name attributes not set correctly

1 messages ยท Page 1 of 1 (latest)

true echo
#

Hey, got bookstack setup with SAML and so far it's been working great. However we recently had a new user setup in authentik and when they logged in to bookstack for the first time I would expect their name to be their authentik name atribute, as in the bookstack configuration the following is set: SAML2_DISPLAY_NAME_ATTRIBUTES=Name, however it gets set to their email, which makes it a bit weird seeing as bookstack already saves their email separately ๐Ÿ˜›

Not sure if this is a configuration error on the SAML provider side or bookstack side. The setup is identical to the one in the bookstack integration documentation.

crisp idol
#

you will need to wait for the next release and upgrade to benefit from this fix

true echo
#

Doesn't look like it, since that has to do with the username attribute, this is the name attribute

crisp idol
#

You are right, I misread your initial message, furthermore the linked issue is related to SAML as a source and not as a provider, sorry for that

true echo
#

No worries, glad that someone tried to help ๐Ÿ˜„

crisp idol
#

what value do you have in SAML2_EXTERNAL_ID_ATTRIBUTES?

#

also which property mappings are select in your saml provider configuration?

true echo
#

The external id attribute is uid

#

And all mappings are selected on the provider

crisp idol
#

that's odd because the display attribute should be http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name

#

I am looking up bookstack source code to see how attributes are matched

#

@true echo could you try with SAML2_DISPLAY_NAME_ATTRIBUTES=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name?

true echo
#

Will do when I get home, cheers for looking into it ๐Ÿ˜„

true echo
#

Sorry for not trying this earlier, life got in the way. But it worked perfectly! Thank you very much @crisp idol

crisp idol
#

Could you open a MR or an issue in authentik repository so the documentation could be corrected?

true echo
#

Oooh, good point!

#

Yea, will do

#

It's already on there at the bottom even ๐Ÿ˜› Under notes

#

Should've caught it earlier I guess xD

#

Anyway, many thanks for the help! ๐Ÿ˜„