Skip to content

FAPI 2.0: x-fapi-* headers #282

Open

Description

@bitbucket-import-issues

Originally submitted by tlodderstedt (Torsten Lodderstedt) on 2020-03-10

The spec currently states the client can send x-fapi headers, but does not give a rationale nor describes what is the AS supposed to do with those headers. Please plarify.


Bitbucket status: open

Bitbucket origin: issue 282

Activity

  1. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by Stuart Low (Stuart Low) on 2020-03-10

    At least for x-fapi-interaction-id this is quite useful for tracing of flows through multiple layers on both OP and RP sides. It’s also potentially useful for reporting an error message that can be looked up in logs but is consistent across all participants.

  2. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by Nat (Nat Sakimura) on 2020-03-11

    Need to document what to use it for and implications to conformance tests.

  3. added
    type: bug
    priority: major
    migrated-from-bitbucket
    component: Implementation & Deployment Advice
    on Jul 2, 2026
  4. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by Dima Postnikov (Dima Postnikov) on 2020-03-11

    FYI Australia’s CDR descriptions (https://consumerdatastandardsaustralia.github.io/standards/#http-headers):

    Personally, I am not sure how useful customer-ip-address and auth-date are..

  5. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author
  6. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by dgtonge (Dave Tonge) on 2020-11-18

    I think we should drop the ip address and auth date headers.

  7. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by josephheenan (Joseph Heenan) on 2020-11-18

    I think we should drop the ip address and auth date headers.

    ‌

    I believe at least UK & CDR are using these headers to mean ‘customer present’. If we do drop them we should probably address that somehow.

  8. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by Dima Postnikov (Dima Postnikov) on 2020-11-18

    In CDR, IP address is used as an ‘customer present’ indicator. Mandatory, if customer is present.

    Auth date is a mandatory ‘last auth date’.

    Not sure what the benefit of these or the quality / consistency of the the values supplied.

  9. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by dgtonge (Dave Tonge) on 2020-11-25

    So if starting from scratch with these specs, I would say that “customer presence” data is metadata that the AS may need to be aware of, but that should be irrelevant to the RS.

    When such metadata is needed for an initial authorization decision, then it should be sent in RAR data.

    When such metadata is needed to justify ongoing access, then it would seem to make sense to me to define an extension to the refresh token grant. For example under the PSD2 legal framework a Client could have the permission to get an access token (that lasts for 10 minutes) 4 times every 24 hours. If the Client wanted to access more than that, the condition would be that the customer is present. The Client could send the customer IP address and auth time to the token endpoint when requesting a new access token. This would keep logic simple:

    • the RS could just trust the access token
    • the AS could have the logic when issuing access tokens in the refresh token grant to check how many times tokens have been issued in the last 24 hours

    Sending “customer presence” metadata to the RS doesn’t seem right as it confuses authorization and resource access.

  10. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by dgtonge (Dave Tonge) on 2020-11-25

    we discussed on the call today. There was a case made that it is important for the RS to have “customer present” information.

    A further point that I believe is relevant to this - if this information is important and may need to be signed in the future, then any signing mechanism will need to support signing of HTTP headers if the information is sent in http headers.

  11. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by dgtonge (Dave Tonge) on 2021-01-06

    we had more discussion on the call and the following was discussed:

    • continuous authorization is important to support - the RS needs to be able to have additional data from which authorization decisions may be made
    • the data may not be able to be relied on from an accuracy perspective, but an RS may need to keep the data for audit purposes, and there may be legal requirements on how they deal with requests
    • given that the data may be needed for audit purposes, it should probably be signed in FAPI2 advanced
    • should the headers start with x-
    • should we define an extensible way for this information to be passed from the client to the RS or just let ecosystems come up with their own headers

    ‌

  12. 3 remaining items

  13. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author
  14. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by dgtonge (Dave Tonge) on 2021-05-19

    opening again so we can discuss for the next implementers draft

  15. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by dgtonge (Dave Tonge) on 2021-09-08

    We discussed this on the call today.

    There was discusision that if we do keep any of these headers, we should keep the x- prefix as it doesn’t make sense to cause breaking changes over 2 characters.

    We discussed that the x-fapi-interaction-id could be useful for auditing purposes and it could make sense to add it back into the spec.

    We had some discussion around the ip address and auth time. There was some discussion of making use of this header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For to pass through the end-user IP address.

    We discussed that it would be good to resolve this issue on next weeks call.

  16. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by Ralph Bragg (Ralph Bragg) on 2021-09-16

    I’m happy to drop all of the headers except for the interaction id.

  17. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by dgtonge (Dave Tonge) on 2021-09-16

    We had a long discussion about this on the call yesterday.

    We agreed that it would be better to move these headers to implementation advice, rather than have in the core spec.

    We discussed that IP Address / Last auth time are problematic due to the fact that IP address can be PII and that the main usage of those headers has been to indicate whether a customer is present - but that is not clear at all. We discussed perhaps specifying a different header to indicate whether a customer is present. However we decided that such a header would only be a signal and wouldn’t be able to be trusted. Putting such a header in a security profile may

    We agreed to leave this ticket open and start the FAPI 2 Implementation Advice document. There is still some disagreement about whether interaction-id belongs in the security profile, or in a different spec.

    We noted that ecosystems are free to use the exiting x-fapi headers and still be fully conformant with FAPI 2. Indeed the UK and Australia already add extra requirements around these headers (and define extra headers).

  18. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by dgtonge (Dave Tonge) on 2021-09-29

    I’ve started a draft implementation advice doc: https://bitbucket.org/openid/fapi/pull-requests/288/add-initial-version-of-implementation

  19. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by Nat (Nat Sakimura) on 2023-07-05

    Related to #487 as well.

    Some guidance would be useful (Dima).

    We need to collect content.

  20. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by dgtonge (Dave Tonge) on 2025-03-19

    discussed today

    • x-fapi-interaction-id is very useful and is used not for security, but for support
    • customer present headers - often added by ecosystem, but lots of issues, we should work out if we can suggest something better

      also x-fapi- or just fapi-

    ‌

  21. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by Anoop Saxena (Anoop Saxena) on 2025-03-21

    There are many implementation of API gateways and applications of that can forward an x- directive header name and we may have issue when a custom header is added these gateway have add this custom header.

    ‌

  22. bitbucket-import-issues commented on Jul 2, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by Nat (Nat Sakimura) on 2025-03-26

    Perhaps we need to create a full list of x- headers and solicit feedback on how they are used and implemented from ecosystems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

component: Implementation & Deployment Advicemigrated-from-bitbucketpriority: majortype: bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions