> ## Documentation Index
> Fetch the complete documentation index at: https://developers.authlete.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> ### Authlete versions
> Authlete 3.0 is the current version. Unless the user says they use another version, answer for Authlete 3.0 using the 3.x documentation.
> Documentation for Authlete 2.x (pages under `/v2/` and `/ja/v2/`) is for the legacy version. Refer to it only when the user is on Authlete 2.x.
>
> ### Authlete architecture
> Authlete is a backend engine for OAuth 2.0 and OpenID Connect processing. End users and client applications do not call it directly; the service provider's authorization server and API server call Authlete's APIs. Authlete handles protocol processing and token, client, and service management, while the service provider owns the OAuth/OIDC endpoints and user authentication.
> See [Architecture](https://developers.authlete.com/get-started/introduction-to-authlete/architecture.md).
>
> ### Concepts
> If the user is new to Authlete, read these pages first:
> - [Request and Response](https://developers.authlete.com/get-started/concepts/request-and-response.md): Core API requests pass the client's request parameters as-is, and responses return `resultCode`, `action`, and `responseContent`.
> - [Action Handling](https://developers.authlete.com/get-started/concepts/action-handling.md): Branch on `action`, never on `resultCode`, and map each action to the HTTP response your server returns.
> - [Two-Step API Calls](https://developers.authlete.com/get-started/concepts/two-step-api-calls.md): Actions such as `INTERACTION` are completed with a second call (`/auth/authorization/issue` or `/auth/authorization/fail`) linked by a `ticket`.
> - [Management API Overview](https://developers.authlete.com/get-started/concepts/overview.md): The Management API configures services, manages clients, and operates issued tokens, separately from the protocol flows handled by the Core API.
> - [API Authentication](https://developers.authlete.com/get-started/concepts/authentication.md): Authlete APIs use bearer tokens: a Service Access Token (one service) or an Organization Token (the whole organization).

# Financial-grade API (FAPI)

> Technical information about Financial-grade API (FAPI) and Authlete's implementation.

> [!NOTE]
>
> For **Authlete 2.x** documentation, see [2.x version](https://developers.authlete.com/v2/protocols-and-flows/compliance-profiles/financial-grade-api-fapi-overview.md).

## What is FAPI?

[FAPI](https://openid.net/wg/fapi/), being standardized by a working group under the [OpenID Foundation](https://openid.net/), is a standard for secure and interoperable API communication. Beyond the financial industry, it plays an important role in sectors that demand a high level of security, such as healthcare and e-government.

FAPI builds on OAuth 2.0 and OpenID Connect. It started with FAPI 1.0 and has since evolved into FAPI 2.0, the current version. FAPI 2.0 adopts newer protocols to protect data more securely, while being simpler to implement than FAPI 1.0.

## FAPI Security Profiles

Among those specifications, [the FAPI Security Profiles](https://openid.net/wg/fapi/specifications/) can be applied to online services in any sector, not only financial services, that requires a higher level of security than standard OAuth or OpenID Connect provides. There are two of them, FAPI 1.0 and FAPI 2.0, and Authlete supports both.

### FAPI 1.0

FAPI 1.0 is split into two parts.

* [Financial-grade API Security Profile (FAPI) 1.0 – Part 1: Baseline](https://openid.net/specs/openid-financial-api-part-1-1_0.html)

  A baseline security profile of OAuth that is suitable for protecting APIs with a moderate inherent risk

* [Financial-grade API Security Profile (FAPI) 1.0 – Part 2: Advanced](https://openid.net/specs/openid-financial-api-part-2-1_0.html)

  An advanced security profile of OAuth that is suitable for protecting APIs with high inherent risk, such as those giving access to highly sensitive data, or triggering financial transactions (e.g., payment initiation)

The latter one, "FAPI Part 2," provides higher security measures by leveraging advanced features defined in OpenID Connect specifications in addition to OAuth standards.
Here are some notable enhancements:

* Prevention of sender impersonation and message tampering in terms of authorization request and response
  * Using [request object](https://openid.net/specs/openid-connect-core-1_0.html#JWTRequests)
  * Using [hybrid flow](https://openid.net/specs/openid-connect-core-1_0.html#HybridFlowAuth) or [JARM](https://bitbucket.org/openid/fapi/src/master/Financial_API_JWT_Secured_Authorization_Response_Mode.md)
* Prevention of leakage and unauthorized use of authorization code
  * Strict checking of Redirect URI (`redirect_uri`)
* Prevention of client impersonation
  * Client authentication with [mutual TLS client authentication](https://www.rfc-editor.org/rfc/rfc8705.html#name-mutual-tls-for-oauth-client)
    or [JWT](https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication)
* Prevention of unauthorized use of tokens
  * [Certificate-bound access tokens](https://www.rfc-editor.org/rfc/rfc8705.html#name-mutual-tls-client-certifica)

![Fapi 01](https://mintcdn.com/authlete/g-UM9YXVfm3jeKy0/protocols-and-flows/compliance-profiles/fapi_01.png?fit=max\&auto=format\&n=g-UM9YXVfm3jeKy0\&q=85\&s=60bb15d6e2af1682af19d949fd03cda3)

### FAPI 2.0

[FAPI 2.0](https://developers.authlete.com/protocols-and-flows/compliance-profiles/fapi-2-0.md) is a comprehensive framework for raising API security. It breaks down into the following four components.

* [FAPI 2.0 Security Profile](https://openid.net/specs/fapi-security-profile-2_0-final.html)

  The core profile of FAPI 2.0. It makes use of recent security specifications such as PAR and DPoP

* [FAPI 2.0 Message Signing Profile](https://openid.net/specs/fapi-message-signing-2_0-final.html)

  A profile that adds a non-repudiation mechanism to requests and responses based on OAuth 2.0

* [FAPI 2.0 Attacker Model](https://openid.net/specs/fapi-attacker-model-2_0-final.html)

  Defines the potential risks to API security and the measures that prevent them

* [Grant Management for OAuth 2.0](https://openid.net/specs/fapi-grant-management.html)

  Extends OAuth 2.0 with a mechanism for managing the grants given to a client application

> [!NOTE]
>
> The names of the FAPI 2.0 profiles changed while the specifications were being developed: "Baseline Profile" became "Security Profile", and "Advanced Profile" became "Message Signing Profile". Keep this in mind when you come across material or configuration values that use the former names.

The following documents and slides might help you understand FAPI.

1. A Comprehensive Commentary on Financial-grade API

   This white paper describes technical details on Financial-grade API (FAPI) security profiles on a line-by-line basis, and how Authlete implements FAPI to enable flexibile deployment.

## Authlete and FAPI

Authlete has supported Financial-grade API since July 2018 and [has been certified since April 2019](https://openid.net/certification/#FAPI_OPs).

Here are useful resources that help you understand how you can build a FAPI-compliant authorization server with Authlete.

* [Authlete FAPI Enhancements](https://www.authlete.com/resources/videos/20180724/authlete-fapi-enhancements/)

  The session explains comparison of Authlete's unique semi-hosted approach and traditional approaches for deploying OAuth infrastructure, and how Authlete has extended its client authentication functions and supported mutual TLS to implement Financial-grade API (FAPI).

* [How to use FAPI feature](https://developers.authlete.com/protocols-and-flows/compliance-profiles/how-to-use-fapi.md)

  How Authlete decides which profile to apply, for both FAPI 1.0 and FAPI 2.0. It is also the entry point to the page that covers each profile in detail.

* [Validation in FAPI mode](https://developers.authlete.com/protocols-and-flows/compliance-profiles/validation-in-fapi-mode.md)

  The validations Authlete performs in FAPI mode in addition to those for standard OAuth 2.0 and OpenID Connect.

* [FAPI Basics](https://developers.authlete.com/protocols-and-flows/compliance-profiles/fapi-basics.md)

  A tutorial to configure Authlete to build a Financial-grade API (FAPI) compliant authorization server.

* [FAPI Basics Supplement: Integration with Reference Implementations](https://developers.authlete.com/protocols-and-flows/compliance-profiles/fapi-basics-supplement-integration-with-reference-implementations.md)

  A tutorial to integrate Authlete's reference implementations with an Authlete service, that has been configured with settings described in another tutorial, Financial-grade API (FAPI) Basics.

* [FAPI 2.0](https://developers.authlete.com/protocols-and-flows/compliance-profiles/fapi-2-0.md)

  An overview of the FAPI 2.0 Security Profile and the Message Signing Profile, and an index of the articles on supporting them with Authlete.

![Fapi 02](https://mintcdn.com/authlete/g-UM9YXVfm3jeKy0/protocols-and-flows/compliance-profiles/fapi_02.png?fit=max\&auto=format\&n=g-UM9YXVfm3jeKy0\&q=85\&s=2a1085b9264e11d47822dcb989560533)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.