FHIR Chat · Forward objects from an interceptor · hapi

Stream: hapi

Topic: Forward objects from an interceptor


view this post on Zulip Théo Matussière (May 19 2020 at 13:48):

Théo Matussière: 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

P.S.: Maybe rephrased simpler; can I access the headers in a provider REST method?
P.P.S.: x-post from https://chat.fhir.org/#narrow/stream/179166-implementers/topic/Forward.20objects.20from.20an.20interceptor

view this post on Zulip James Agnew (May 19 2020 at 19:28):

Question was addressed here: https://groups.google.com/forum/#!topic/hapi-fhir/zyTGYhuCUK4

(Note, please don't crosspost issues to both the google group and here without at least giving the community some time to answer)

view this post on Zulip Théo Matussière (May 20 2020 at 06:49):

Apologies, thanks for the quick reply!


Last updated: Apr 12 2022 at 19:14 UTC