https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40650
Bug ID: 40650
Summary: Identity providers lack support for extended patron
attribute type mapping
Change sponsored?: ---
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Authentication
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
Hi,
so far we've been using LDAP authentication and with extended attribute type
mapping (on register and login/update) but we have to move to OIDC. Thankfully
there's an identity provider (IdP) for that. Great! However, testing and code
inspection indicate that extended patron attributes can't be used for IdP
mapping. When I try that I get:
> There was an error authenticating to external identity provider
> No property <ATTRIBUTE> for Koha::Patron
At first glance, the code seems to support that assessment. For instance, the
"update_on_auth" feature [1] calls set() which isn't overridden in Koha::Patron
so Koha::Object.set() is being called [2], which of course isn't aware of those
patron-specific extended attributes, eventually triggering the error above.
To me that omission is a regression as existing auth methods like LDAP do
support mapping extended patron attributes. Without that we can't rely on using
identity providers since we'd lose required functionality.
Thanks
[1]
https://github.com/Koha-Community/Koha/blob/8d31c2e06733fbc0f599ea99fe46df50cae7c163/Koha/Auth/Client.pm#L88
[2]
https://github.com/Koha-Community/Koha/blob/8d31c2e06733fbc0f599ea99fe46df50cae7c163/Koha/Object.pm#L323
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/