- Issue created by @fgarciap
- π¦π©Andorra fgarciap
Now it shows when you try to login to page
TypeError: Drupal\externalauth\ExternalAuth::load(): Argument #1 ($authname) must be of type string, null given, called in /mnt/tranfer/intranet/web/modules/contrib/o365/modules/o365_sso/src/Controller/UserLoginController.php on line 103 a Drupal\externalauth\ExternalAuth->load()
- Assigned to fabianderijk
- π³π±Netherlands fabianderijk Alphen aan den Rijn
At this moment we cannot map the attribute. But I will see if I can create a new release with this feature. I can imagine this will happen more often.
- π¦π©Andorra fgarciap
OK Thanks fabian :)
I attached new screenshot we have now. Is the same issue or a new one?
-
fabianderijk β
committed e93bd762 on 5.0.x
Issue #3439424: Mapping drupal username - Fails at login
-
fabianderijk β
committed e93bd762 on 5.0.x
- Status changed to Fixed
3 months ago 12:01pm 12 April 2024 - π³π±Netherlands fabianderijk Alphen aan den Rijn
This is fixed in the 5.0.11 release version. On the admin page (/admin/config/system/o365/settings/sso) you can now enter the correct attribute to use for the username. The issue of the screenshot is something different, but it is fixed in the new release as well.
The release is created, it may take some time before it is actually available.
- π¦π©Andorra fgarciap
Thanks fabian,
I'm sorry, but on database nothing change after your new release. I've attached screenshots of my new test :)
On admin/config/system/o365/settings/sso I've put 'mail' as attribute of Microsoft office 365 username. On database, name field still update with displayName attribute
- π³π±Netherlands fabianderijk Alphen aan den Rijn
Mmm, I think that happens because it only uses this setting on creation of the user. For now it doesn't update existing users.
To fix this, I've created β¨ Update username on login Active that I will look into today.
Automatically closed - issue fixed for 2 weeks with no activity.