You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
x-fapi-interaction-id across client to AS and RS interactions #290
Originally submitted by tlodderstedt (Torsten Lodderstedt) on 2020-05-13
I suggest to discuss to broaden the scope of the x-fapi-interaction-id to also cover interactions with the AS, such as PAR, authorization request, token request. I think that would be very useful.
Originally submitted by Daniel Fett (Daniel Fett) on 2020-11-08
Current wording:
may send the `x-fapi-interaction-id` request header whose value is a [!RFC4122] UUID to the server (...)
So PAR and token request are covered.
Sending it in the authorization request is tricky due to the nature of navigation with GET in browsers. I think that we don’t want to introduce a new authorization request parameter (outside of PAR) for this.
Originally submitted by Dima Postnikov (Dima Postnikov) on 2022-08-08
Oh wait. It’s there already for FAPI 2.
x-fapi-interaction-id
This header can be used to enable Authorization Servers, Resource Servers and Clients to better track and debug any issues between them. If an ecosystem adopts x-fapi-interaction-id then the following clauses apply:
clients shall send the x-fapi-interaction-id request header, the value shall be a RFC4122 UUID, e.g., x-fapi-interaction-id: c770aef3-6784-41f7-8e0e-ff5f97bddb3a;
the AS or RS shall set the response header x-fapi-interaction-id to the value received from the corresponding FAPI client request header or to a [RFC4122] UUID value if the request header was not provided to track the interaction, e.g., x-fapi-interaction-id: c770aef3-6784-41f7-8e0e-ff5f97bddb3a;
participants (whether Client, AS or RS) shall log the value of x-fapi-interaction-id in the log entry.
Originally submitted by Dima Postnikov (Dima Postnikov) on 2022-08-12
Now that we extended x-fapi-interaction-id from “Client - RS” interaction to “Client - AS - RS” interaction, could we clarify the following scenario:
If a client calls a PAR endpoint with x-fapi-interaction-id, makes an authorisation request with x-fapi-interaction-id, makes a token request with x-fapi-interaction-id and, eventually makes an RS call with x-fapi-interaction-id.
Should it be the same x-fapi-interaction-id? Or all different? Or some different?
Originally submitted by josephheenan (Joseph Heenan) on 2022-08-12
I think it’s upto the client though I guess we could make a suggestion. I would expect that across a single authorization code flow the client would probably choose/want to use a consistent interaction id, but requiring it to use the same one if (say) it wants to use the refresh token grant / RS call days later in a different session with the user that’d seem like overreach.
Originally submitted by Dima Postnikov (Dima Postnikov) on 2022-08-15
Thanks Joseph, this in-between approach makes sense to me too. We could add a note to the text as following:
Option 1:
Note: Particular scenarios where same x-fapi-interaction-id is used across multiple calls are to be defined by implementers.
Option 2:
Note: It is recommended to use the same x-fapi-interaction-id across single authorization code flow and different x-fapi-interaction-id for each of the API calls afterwards. Particular scenarios where same x-fapi-interaction-id is used across multiple calls could to be defined by implementers.
What do you think?
There is no impact to RS or AS, just for the client and the troubleshooting process in general.
Originally submitted by josephheenan (Joseph Heenan) on 2022-08-15
It’d seem reasonable to offer a bit more advice on the subject.
I think we should avoid anything that might imply the AS can require particular behaviours from the client (i.e. the x-fapi-interaction-id header should never be grounds to fail an operation).
Probably for the purposes of making finding any particular set of transactions in logging possible one x-fapi-interaction-id per user session is fine (when combined with rough time + endpoint url), although I can imagine in some cases there might be a lot of calls to the same endpoint url in a short space of time that might make it worthwhile to use different interactive ids.
Originally submitted by Dima Postnikov (Dima Postnikov) on 2025-04-02
Call summary
Decision 1. Current approach works:
x-fapi-interaction-id
This header can be used to enable Authorization Servers, Resource Servers and Clients to better track and debug any issues between them. If an ecosystem adopts x-fapi-interaction-id then the following clauses apply:
clients shall send the x-fapi-interaction-id request header, the value shall be a RFC4122 UUID, e.g., x-fapi-interaction-id: c770aef3-6784-41f7-8e0e-ff5f97bddb3a;
the AS or RS shall set the response header x-fapi-interaction-id to the value received from the corresponding FAPI client request header or to a [RFC4122] UUID value if the request header was not provided to track the interaction, e.g., x-fapi-interaction-id: c770aef3-6784-41f7-8e0e-ff5f97bddb3a;
participants (whether Client, AS or RS) shall log the value of x-fapi-interaction-id in the log entry.
Originally submitted by Dima Postnikov (Dima Postnikov) on 2025-04-02
Decision 3. Add a note to allow the re-use of x-fapi-interaction-id across PAR, token request, and the immediate API call. Leave it up to ecosystems, but make a note that the authorization request will not have the headers.
Activity
bitbucket-import-issues commentedon Jul 2, 2026
Current wording:
So PAR and token request are covered.
Sending it in the authorization request is tricky due to the nature of navigation with GET in browsers. I think that we don’t want to introduce a new authorization request parameter (outside of PAR) for this.
bitbucket-import-issues commentedon Jul 2, 2026
This requirement (and at least one other):
is currently only a requirement on the resource server though (not on the authorization server).
bitbucket-import-issues commentedon Jul 2, 2026
Waiting for #282.
bitbucket-import-issues commentedon Jul 2, 2026
Removed the x-fapi- headers in master pending further discussion after the 1st Implementer’s Draft
bitbucket-import-issues commentedon Jul 2, 2026
I still like Torsten’s suggestion… Are we still planning to add this into Implementation and Deployment Advice?
bitbucket-import-issues commentedon Jul 2, 2026
Oh wait. It’s there already for FAPI 2.
x-fapi-interaction-id
This header can be used to enable Authorization Servers, Resource Servers and Clients to better track and debug any issues between them. If an ecosystem adopts
x-fapi-interaction-idthen the following clauses apply:x-fapi-interaction-idrequest header, the value shall be a RFC4122 UUID, e.g.,x-fapi-interaction-id: c770aef3-6784-41f7-8e0e-ff5f97bddb3a;x-fapi-interaction-idto the value received from the corresponding FAPI client request header or to a [RFC4122] UUID value if the request header was not provided to track the interaction, e.g.,x-fapi-interaction-id: c770aef3-6784-41f7-8e0e-ff5f97bddb3a;x-fapi-interaction-idin the log entry.This should be closed then?
bitbucket-import-issues commentedon Jul 2, 2026
Yeah, I think this can be closed.
bitbucket-import-issues commentedon Jul 2, 2026
Now that we extended
x-fapi-interaction-idfrom “Client - RS” interaction to “Client - AS - RS” interaction, could we clarify the following scenario:If a client calls a PAR endpoint with
x-fapi-interaction-id, makes an authorisation request withx-fapi-interaction-id, makes a token request withx-fapi-interaction-idand, eventually makes an RS call withx-fapi-interaction-id.Should it be the same
x-fapi-interaction-id? Or all different? Or some different?bitbucket-import-issues commentedon Jul 2, 2026
I think it’s upto the client though I guess we could make a suggestion. I would expect that across a single authorization code flow the client would probably choose/want to use a consistent interaction id, but requiring it to use the same one if (say) it wants to use the refresh token grant / RS call days later in a different session with the user that’d seem like overreach.
bitbucket-import-issues commentedon Jul 2, 2026
Thanks Joseph, this in-between approach makes sense to me too. We could add a note to the text as following:
Option 1:
Note: Particular scenarios where same
x-fapi-interaction-idis used across multiple calls are to be defined by implementers.Option 2:
Note: It is recommended to use the same
x-fapi-interaction-idacross single authorization code flow and differentx-fapi-interaction-idfor each of the API calls afterwards. Particular scenarios where samex-fapi-interaction-idis used across multiple calls could to be defined by implementers.What do you think?
There is no impact to RS or AS, just for the client and the troubleshooting process in general.
bitbucket-import-issues commentedon Jul 2, 2026
It’d seem reasonable to offer a bit more advice on the subject.
I think we should avoid anything that might imply the AS can require particular behaviours from the client (i.e. the x-fapi-interaction-id header should never be grounds to fail an operation).
Probably for the purposes of making finding any particular set of transactions in logging possible one
x-fapi-interaction-idper user session is fine (when combined with rough time + endpoint url), although I can imagine in some cases there might be a lot of calls to the same endpoint url in a short space of time that might make it worthwhile to use different interactive ids.bitbucket-import-issues commentedon Jul 2, 2026
Need a PR.
bitbucket-import-issues commentedon Jul 2, 2026
Call summary
Decision 1. Current approach works:
x-fapi-interaction-id
This header can be used to enable Authorization Servers, Resource Servers and Clients to better track and debug any issues between them. If an ecosystem adopts
x-fapi-interaction-idthen the following clauses apply:x-fapi-interaction-idrequest header, the value shall be a RFC4122 UUID, e.g.,x-fapi-interaction-id: c770aef3-6784-41f7-8e0e-ff5f97bddb3a;x-fapi-interaction-idto the value received from the corresponding FAPI client request header or to a [RFC4122] UUID value if the request header was not provided to track the interaction, e.g.,x-fapi-interaction-id: c770aef3-6784-41f7-8e0e-ff5f97bddb3a;x-fapi-interaction-idin the log entry.this is existing text.
bitbucket-import-issues commentedon Jul 2, 2026
Decision 2. keep x-fapi convention.
bitbucket-import-issues commentedon Jul 2, 2026
Decision 3. Add a note to allow the re-use of x-fapi-interaction-id across PAR, token request, and the immediate API call. Leave it up to ecosystems, but make a note that the authorization request will not have the headers.
bitbucket-import-issues commentedon Jul 2, 2026
Joseph Heenan Filip Skokan Dave Tonge Please review.
bitbucket-import-issues commentedon Jul 2, 2026
looks good to me
bitbucket-import-issues commentedon Jul 2, 2026
Just adding the notes from the Pacific call on 2025-04-03
Discussion focused on which x-fapi headers to keep
Agreement to maintain
x-fapi-interaction-idas it provides value for tracing issues across transactionsNeed for a customer present/not present header instead of using
x-fapi-customer-ip-addressDiscussion on how to ensure clients set the flag correctly, particularly for background/offline jobs
Ecosystem monitoring as a solution for detecting misuse (e.g., if a relying party marks all API calls as customer present)
Mark mentioned that none of the other headers are consistently used or reliable:
x-fapi-auth-date(time customer logged into RP) is not being used properlyTeam will define a customer present flag with a default value (likely false if absent)