https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39199 --- Comment #14 from David Cook <dcook@prosentient.com.au> --- (In reply to David Cook from comment #13)
(In reply to Shi Yao Wang from comment #12)
It's really just getting the data necessary to show a user it's notices like in notices.pl but with an api call instead so I think your intuition is correct.
So that use case is interesting. I note that you said "to show a user its notices like in notices.pl". At the moment, Koha only supports the client credentials grant for OAuth (and the HTTP Basic Auth is basically the same thing).
At some point, we need to start thinking about an API path starting with something like "/my/" where the API is in the context of the user rather than an all powerful API user. I raised bug 41671 to talk about / explore this
And actually... notices.pl doesn't allow a user to see their own notices. It allows a staff user to see another user's messages. If you're wanting to show an OPAC user their own messages, I don't think the OPAC actually has an equivalent. At some point, I want to do a proof of concept for this... -- You are receiving this mail because: You are watching all bug changes.