[Bug 43348] New: check_api_auth calls log authentication attempts' interface as opac
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43348 Bug ID: 43348 Summary: check_api_auth calls log authentication attempts' interface as opac Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Authentication Assignee: koha-bugs@lists.koha-community.org Reporter: lmstrand@gmail.com QA Contact: martin.renvoize@openfifth.co.uk CC: dpavlin@rot13.org Target Milestone: --- Handling SIP2 93 messages (and any processes that use check_api_auth method) create a log entry to action_logs with wrong interface when AuthSuccessLog and/or AuthFailureLog are in use. The interface shows as 'opac'. This is the default interface when no interface is being passed down to checkpw method which check_api_auth is using. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43348 --- Comment #1 from Lari Strand <lmstrand@gmail.com> --- I suppose we would need to add parameter support for the check_api_auth method and make it default to api. This way if sip server needs to do a check_api_auth call we could pass sip as interface to the method instead? Then again, at the moment sip logs have entries like "api_auth failed for SIP terminal" (login_core in MsgType.pm) so would it be ok to just hard code the interface as 'api' instead, even if the sip server is doing the query? -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org