Stream: implementers
Topic: Forward objects from an interceptor
Théo Matussière (May 19 2020 at 12:09):
Hi all,
I'm wondering how I could forward authentication information to my providers.
The scenario is where the authenticated user only has access to this or that resource based on the resource's id.
It seems like the relevant Pointcut/hooks for authentication (
SERVER_INCOMING_REQUEST_POST_PROCESSED
or SERVER_INCOMING_REQUEST_PRE_HANDLED
) can only return booleans or throw, but I would like to forward e.g. a User object to my provider to determine access there.
Maybe the interceptor is the wrong feature to use in this case?
Best,
Théo
Théo Matussière (May 19 2020 at 12:48):
Maybe rephrased simpler, can I access the headers in a provider REST method?
Michele Mottini (May 19 2020 at 13:03):
Is this a HAPI question? Maybe better to ask in the #hapi stream?
Théo Matussière (May 19 2020 at 13:45):
Oh it is, my bad I conflated the two streams, thanks! redirected the post to that stream: https://chat.fhir.org/#narrow/stream/179167-hapi/topic/Forward.20objects.20from.20an.20interceptor
Last updated: Apr 12 2022 at 19:14 UTC