morincer / teamcity-plugin-saml

The plug-in adds ability to authenticate users by SAML-based SSO providers (like Okta, Onelogin etc.)
MIT License
24 stars 16 forks source link

Is it possible to set the username from email address? #89

Open suntsu42 opened 2 years ago

suntsu42 commented 2 years ago

I've configured the teamcity-plugin-saml against an azure AD saml and it is working without problem. An authenticated users is created automatically.

The only problem is that the username is some random string (Which is not part of the saml response) image

I've configure email and name to the corresponsing attributes and those are set properly image

Is it possible to set the username to the value of the email address by default?

morincer commented 2 years ago

Hi! No, it's not possible - the username is taken from the NameId part of the SAML assertion - and it's not really customizable at the moment.