FAPI checklist
This checklist extends the minimal deployment checklist with the required configurations for setting up the Connect2id server for the FAPI Security Profile 1.0 - Part 2: Advanced, version 2021-03-12.
1. TLS terminator / HTTPS reverse proxy
-
Make sure TLS 1.2 or later is used, and disable all weak ciphers.
For OpenSSL (e.g. with Apache httpd):
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM SSLProtocol -all +TLSv1.2
-
Configure your TLS terminator / HTTPS reverse proxy to support client X.509 certificates. If a client certificate is found, it must be passed to the Connect2id server in a special HTTP header. Check the TLS guide for instructions.
2. Connect2id server configuration
Required Connect2id server configuration settings for conformance with FAPI Security Profile 1.0 - Part 2: Advanced. Assumes Connect2id server 11.6.
-
Require registered redirection URIs to use the
https
scheme:op.reg.rejectNonTLSRedirectionURIs=true
-
Make sure only PS256 or ES256 signed ID tokens can get issued:
op.idToken.jwsAlgs=PS256,ES256
-
Include a state hash in the issued ID tokens:
op.idToken.includeStateHash=true
-
Support and advertise one or more ACRs at LoA 2 or higher. Example configuration for some ACR:
op.authz.advertisedACRs=urn:mace:incommon:iap:silver
-
Allow only the
code
andcode id_token
response types:op.authz.responseTypes=code,code id_token
-
Always require the redirect_uri parameter in authorisation requests, not only for OpenID authentication requests where the parameter is mandatory:
op.authz.alwaysRequireRedirectURI=true
-
Make sure only PS256 or ES256 signed request JWTs get accepted:
op.authz.requestJWSAlgs=PS256,ES256
-
Always require clients to submit a signed request JWT, either via the
request
orrequest_uri
parameter:op.authz.alwaysRequireSignedRequestJWT=true
-
Require an exp (expiration) claim in the request JWTs:
op.authz.requireRequestJWTExpiration=true
-
Require an nbf (not before) claim in the request JWTs:
op.authz.requireRequestJWTNotBefore=true
-
Set the maximum request JWT lifetime to 60 minutes, relative to the nbf claim:
op.authz.maxLifetimeRequestJWTExpiration=3600 op.authz.maxAgeRequestJWTNotBefore=3600
-
Require all authorisation request parameters to be present in the request JWT:
op.authz.requireAllParamsInRequestJWT=true
-
All authorisation responses must be signed, either by means of JARM requested with
response_mode=jwt
or by means of a ID token in the front channel requested withresponse_type=code id_token
:op.authz.alwaysRequireSignedResponse=true
-
Prohibit clients to switch between the query and fragment response modes by setting the
response_mode
authorisation request parameter:op.authz.prohibitSwitchBetweenBasicResponseModes=true
-
Allow only mTLS and private key JWT client authentication at the token endpoint. Note, mTLS authentication can be either configured in its PKI variant (
tls_client_auth
) or self-signed client X.509 certificate variant (self_signed_tls_client_auth
), but not both.To allow private key JWT and self-signed certificate mTLS authentication:
op.token.authMethods=private_key_jwt,self_signed_tls_client_auth
To allow private key JWT and PKI mTLS authentication:
op.token.authMethods=private_key_jwt,tls_client_auth
-
Require clients to present an X.509 client certificate at the token endpoint to ensure the issued access tokens are certificate bound:
op.token.requireClientX509Cert=true
The above configuration properties in one place for easy copying into a configuration file:
op.reg.rejectNonTLSRedirectionURIs=true
op.idToken.jwsAlgs=PS256,ES256
op.idToken.includeStateHash=true
# Set real ACR value(s):
op.authz.advertisedACRs=urn:mace:incommon:iap:silver
op.authz.responseTypes=code,code id_token
op.authz.alwaysRequireRedirectURI=true
op.authz.requestJWSAlgs=PS256,ES256
op.authz.alwaysRequireSignedRequestJWT=true
op.authz.requireRequestJWTExpiration=true
op.authz.requireRequestJWTNotBefore=true
op.authz.maxLifetimeRequestJWTExpiration=3600
op.authz.maxAgeRequestJWTNotBefore=3600
op.authz.requireAllParamsInRequestJWT=true
op.authz.alwaysRequireSignedResponse=true
op.authz.prohibitSwitchBetweenBasicResponseModes=true
op.token.authMethods=private_key_jwt,self_signed_tls_client_auth
# Alternative config to allow private key JWT and PKI mTLS authentication:
# op.token.authMethods=private_key_jwt,tls_client_auth
op.token.requireClientX509Cert=true
3. Authorisation
When authorising requests:
-
Make sure the end-user is authenticated at the configured LoA 2 or higher level and the
acr
parameter for the user session is set to it. This will also set the acr claim in the issued ID token. -
Always require explicit consent by the end-user to authorise the requested scope if not previously authorised (the consent was persisted).
-
When submitting the consent make sure the access token type is set to identifier-based (
access_token
->encoding
).
4. FAPI certification test suite
We recommend running the FAPI certification tests before deploying into production a Connect2id server that needs to conform to the profile.
Note: As of May 2021, the certification suite has not been updated to
the latest (final) FAPI version from 2021-03-12, which introduced additional
checks and constraints. If you need to pass the current FAPI test suite with
Connect2id server 11.6+ make sure the nbf
claim is not required in request
objects:
op.authz.requireRequestJWTNotBefore=false
To set up the certification tests two OAuth 2.0 clients need to be registered with the Connect2id server and their client_id’s, redirection URIs and keys saved in the certification panel.
4.1 For client authentication type: private_key_jwt
Client 1
Sample client metadata to register the first client with the Connect2id server.
Note: The c2id
in the redirection URI must be replaced with the test
alias from certification panel.
{
"preferred_client_id" : "fapi_client_1",
"grant_types" : [ "authorization_code", "refresh_token" ],
"response_types" : [ "code", "code id_token" ],
"redirect_uris" : [ "https://www.certification.openid.net/test/a/c2id/callback" ],
"request_object_signing_alg" : "PS256",
"id_token_signed_response_alg" : "PS256",
"token_endpoint_auth_method" : "private_key_jwt",
"token_endpoint_auth_signing_alg" : "PS256",
"jwks" : {
"keys" : [ {
"kty" : "RSA",
"alg" : "PS256",
"use" : "sig",
"kid" : "GkHpinbDTETemwUJdv7VZ00IyQuKHkWCzRd58SHOhKE",
"x5c" : [ "MIICrjCCAZagAwIBAgIIOwGKxqg9fJQwDQYJKoZIhvcNAQELBQAwFzEVMBMGA1UEAxMMb2F1dGgtY2xpZW50MB4XDTIxMDUwNTA4NTMzNFoXDTIyMDUwNTA4NTMzNFowFzEVMBMGA1UEAxMMb2F1dGgtY2xpZW50MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqVM3LZ1Bo25NvL5Zal9SCudKSk5qqe4DtmlBm8VN+XFDWfxWE4eCmg67xZxSOsPA6YgSQt6pOLW2TizM1LfjJCyjDjBYD0rJbzT5iR4a31OIf6qd4XohD6kLjVnrYhHWyDSTIqaStdeJnZTyNsVmFqvPvN438T9pTBm2F6wpWj5XGG4TCR0Uv666iT48oJVWeyvHczdTw8cPSQELHmBAKKzMWvxLOuJPBI2EAlVym4NUWqvrnOxlVxp00j2508Y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LfF7I1ODZ+x/MdXZcvGrEoxgpc8MoJKc6oRPtwSutPn0r/+Siw14kIXCE/jckm+HQ01Ts0AatTAI7/OiPepjlkgM8SZZGfFeIrjkkC/VnN/
-----END CERTIFICATE-----
The PEM-encoded private key:
-----BEGIN PRIVATE KEY-----
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCdTx/vi+8XmqQ/dyZw2YxCjYMmPTR5lYnbxBAk02kvzejRI03ar+d4J0E+EWqV0eFOm7mnY3J52+fWUJmqQ009fukqKc4EUyEHDrzH80sT69dgxAEavrHt23Yy2ceGu8lIRggdAxpFjmKnoKJEX95utS/ePfSM9A1ATB91XNtPFY/bguSwqRSP3Lx71cmW6WqczJgdYU4P75Ddq1gBvkyowcB7VTBAZBRNw9zHRvuOGUKrfAliwIHUyv4SzwWAPm0opBUxqmT2yasvYa6r6zKTeRfKgDoAqM3EnBYjL/qRz39R0PsEccYAzhRWSL9nDIhh/Dd2Ob9HCJViQdEZGsC5AgMBAAECggEAWm8egOwFa6BvRD0PUFkAlVIdT2JoRG1/b2PrlAAlvGG3smOFYm81tpF6pGAG0lJyIGrN9DjrmrqdMUvsy0EdqnjHOoIF+d6AYjpKtPhc9PrkOrDzoZh3WbKM5PbmCcLzGCWKjIM4Gzyb4poqLvyeNy7acf1UFaRH6erZOvNC8NchdL1I3SzovL7B/X3GlJBw2WUJ84CedLye82HHGi05duEODQcJPAzRaE3SMfGGA5xICRg/jKEVySSXYJiUwHDlCZoFoh/hvfpluYkhmECI6ISabglkCivNmIR8pYbWaQFt66NJNZLoC79Han2V6/iQX+Yo4qU74fPcyFXnjYlXMQKBgQDS1MvqNU3bEohKsoHrGAEKDr1EZRyUd31t+45AEsTnoKNumXKws26STzWB/IRu0+Vg7+C8vzqMSfAQYd2jBYLHBBvhE8zs4XQqafluhq9oTJEtIzrH/YQZbVAa2diEI92+/L/0rD6uipZzxuHcpjd2NbSxzzFLlgwF3knIgR8vKwKBgQC/At0neUdX+SlK6yrNDtrcC1e8krd2PIhKE1R+q7saQuPFDaK/dHTp3YLzGveocT0EL8SpXi9glfSOCjMKTa+gM2DThWg/GnFWIKe/MsgNunYSC5A6aCRaS2DR7vKMCbV5r8FGiSX69cX/PXouHD71XCbY83I+NVm9OrrolJs9qwKBgE54x+FHr8/PiQ0MfhDL4W8l50pyu/2CsBvkmqC8m69++fWrhaXBU3F/q/HS1FQP6Ht5LVPzdU5MIt9mHcGUxoVewSW4Yfj1PXCf+ygpV1Zh0VNUnodbk/SG3F7yIIWmd92jY6slBTuf97nmF6Ex+Mi12qin7rgshBMXFq1bagj7AoGAISZwF1+3AA+gGP6DaR9A4JufWHzmFkEfLiv4qBtJ157wRMy/CBdACy6EgYiWnsc4Xbekm/hapJqh3NzsSsd8yYLhNRScKQd/0ADO3CIGEkvgHfWfzGMym/ElFoov0hoFQt873fADhXCOMmQLBmGkk5SwsUpe82jy8CJ3OdJAtw0CgYB4nB44T9Sm7XE6TR1nmHhRlPnvKokZ8X7aYBTKvwTjvkFH5edzRP7O7oTyXtZWejLe3aoOn4OZb8vP5s8VLmbo8SPi3GrHXV21Jz46WrUe/5bbGNkcVY6mf1PZJ12Jsxtr7RkgjEryBKcgsiiqBt2USW4rtvMfTqG2Uf00NCD/4A==
-----END PRIVATE KEY-----
The client scope for the issued tokens can be set to:
openid offline_access
The resource URL can be set to the UserInfo endpoint of the Connect2id server, for example:
https://fapi.c2id.com/c2id/userinfo
Client 2
Sample client metadata to register the second client with the Connect2id server.
Note: The c2id
in the redirection URI must be replaced with the test
alias from certification panel.
{
"preferred_client_id" : "fapi_client_2",
"grant_types" : [ "authorization_code", "refresh_token" ],
"response_types" : [ "code", "code id_token" ],
"redirect_uris" : [ "https://www.certification.openid.net/test/a/c2id/callback?dummy1=lorem&dummy2=ipsum" ],
"request_object_signing_alg" : "PS256",
"id_token_signed_response_alg" : "PS256",
"token_endpoint_auth_method" : "private_key_jwt",
"token_endpoint_auth_signing_alg" : "PS256",
"jwks" : {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USrRSCqafR3sLHXxBIZxsD8k8o9j/9Km+1Hysr1S9E63W1WNf5tW2K4qirDvuAFfRo4hA5EeJ+/g4t8cAkQtD9WKiDFZ2lZPRJUdx3TIzsGEcaYAL8k3mCfqPmuIBxvZNF5NymGZS9CD6P6wZWoMDarUU6fbRXmJXEjJ8=
-----END PRIVATE KEY-----
The client scope for the issued tokens can be set to:
openid offline_access
The resource URL can be set to the UserInfo endpoint of the Connect2id server, for example:
https://fapi.c2id.com/c2id/userinfo
4.2 For client authentication type: mtls
Client 1
Sample client metadata to register the first client with the Connect2id server.
Note: The c2id
in the redirection URI must be replaced with the test
alias from certification panel.
{
"preferred_client_id" : "fapi_client_1",
"grant_types" : [ "authorization_code", "refresh_token" ],
"response_types" : [ "code", "code id_token" ],
"redirect_uris" : [ "https://www.certification.openid.net/test/a/c2id/callback" ],
"request_object_signing_alg" : "PS256",
"id_token_signed_response_alg" : "PS256",
"token_endpoint_auth_method" : "self_signed_tls_client_auth",
"jwks" : {
"keys" : [ {
"kty" : "RSA",
"alg" : "PS256",
"use" : "sig",
"kid" : "fapi-4e47bfca-69bc-4010-8726-1a10c199d82b",
"x5c" : [ "MIICrjCCAZagAwIBAgIIZ2K9yYwq94AwDQYJKoZIhvcNAQELBQAwFzEVMBMGA1UEAxMMb2F1dGgtY2xpZW50MB4XDTIxMDUwNTA5NTM0OFoXDTIyMDUwNTA5NTM0OFowFzEVMBMGA1UEAxMMb2F1dGgtY2xpZW50MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkPWD86AC6tWCgn\/gDcyu6D8V1+0zWt8rHXuCZtr5\/RYywQQBr3WuVG3pUhwEhGZIuoxItcgjnFhg1gdy2z3L5diqsqoE3VDBXvFT145TJpFwGNbjFdvYR0QxOWL1z6l7UtmjA1\/dYO06ZSPC347mVptll\/LV7olOutTBu1JbktadIWk2EMgPvhfenyXKDPi3zRz8OTptBubW4kBQkoV2DHyiKNTZv82\/9cuhoGzpv7uDkGsa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sMN5slPimkE50QJqBWM0xV5MAYEM62xaUmz7abIvue2bh7ENEkGnz4dGk6kFkZ4BF1v1YhpbMLd7KZgt9S3kbZFgrV9gslWam+8ggG6ZBlS1Hoyf4vhqm2hAatoAcmkYtGAaLVLffq0AfxD1wFQWIWHCwQKBgG9nr+uuHlTs3DXn81OBahH1EPeCcNvXvwqlvhC2WGldpXGBS+gsSQESohrXeM9bOCcglLzfR0WxzQ+cYHl0Jzf/ViNevNUzMSJ1Z9ePaGLXFQtCHv9g+DldtMYQu9qPH8kToHVWiFu4oG4W/NZgB8JwwJU9v29n/8m4sbZGVDfJAoGBAIK4pvG/arK50+SZ6NnmqJzrVh/tSINULqfOzHldSbpgV2SQz+Hb26SsoX0Ueya7A00QHFWQbMsCiqlvIs7K6c9aAvMeh33PX2HbY2KlbPPZo3fgmV7vnrIbqOCm8dPO6mDeKIKwDHMNKVyky4LWZHoShPw2CMjPPTefnom+q3pBAoGAQ2ng2/AmVOrrHscH+Y5TXuFezL488ZJNk1GJZsJ0kUpDaLSP1sWGlUOt8v5BeyG2/wdrjKqbEROG2/O2vGESsJ4ZLlSFtexNcT7IZmv7X1+Co/TQYlCj9P2qh9X1dRrpzJ4wN5bFbjIPis5StDXRmfmtNcfyMm5aNoWyVXlWn38=
-----END PRIVATE KEY-----
The client scope for the issued tokens can be set to:
openid offline_access
The resource URL can be set to the UserInfo endpoint of the Connect2id server, for example:
https://fapi.c2id.com/c2id/userinfo
Client 2
Sample client metadata to register the second client with the Connect2id server.
Note: The c2id
in the redirection URI must be replaced with the test
alias from certification panel.
{
"preferred_client_id" : "fapi_client_2",
"grant_types" : [ "authorization_code", "refresh_token" ],
"response_types" : [ "code", "code id_token" ],
"redirect_uris" : [ "https://www.certification.openid.net/test/a/c2id/callback?dummy1=lorem&dummy2=ipsum" ],
"request_object_signing_alg" : "PS256",
"id_token_signed_response_alg" : "PS256",
"token_endpoint_auth_method" : "self_signed_tls_client_auth",
"jwks" : {
"keys" : [ {
"kty" : "RS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xsD8k8o9j/9Km+1Hysr1S9E63W1WNf5tW2K4qirDvuAFfRo4hA5EeJ+/g4t8cAkQtD9WKiDFZ2lZPRJUdx3TIzsGEcaYAL8k3mCfqPmuIBxvZNF5NymGZS9CD6P6wZWoMDarUU6fbRXmJXEjJ8=
-----END PRIVATE KEY-----
The client scope for the issued tokens can be set to:
openid offline_access
The resource URL can be set to the UserInfo endpoint of the Connect2id server, for example:
https://fapi.c2id.com/c2id/userinfo
4.3 Sample JWK set code
Sample Java code to generate a FAPI client RSA JWK (alg=PS256
) with a
self-signed certificate. Requires a recent version of the OAuth 2.0 / OpenID
Connect SDK:
import java.security.cert.X509Certificate;
import java.util.*;
import com.nimbusds.jose.*;
import com.nimbusds.jose.jwk.*;
import com.nimbusds.jose.jwk.gen.*;
import com.nimbusds.jose.util.*;
import com.nimbusds.jwt.util.*;
import com.nimbusds.oauth2.sdk.id.*;
import com.nimbusds.oauth2.sdk.util.*;
// Generate an RSA JWK
RSAKey rsaJWK = new RSAKeyGenerator(2048)
.keyID("fapi-" + UUID.randomUUID())
.keyUse(KeyUse.SIGNATURE)
.algorithm(JWSAlgorithm.PS256)
.generate();
// Use RSA JWK to sign self-issued client certificate
Date now = new Date();
Date nbf = now;
long * 24 * 365;
Date exp = DateUtils.fromSecondsSinceEpoch(DateUtils.toSecondsSinceEpoch(now) + oneYearInSeconds);
X509Certificate clientCert = X509CertificateUtils.generateSelfSigned(
new Issuer("oauth-client"),
nbf,
exp,
rsaJWK.toRSAPublicKey(),
rsaJWK.toPrivateKey());
// Append client certificate to RSA JWK
rsaJWK = new RSAKey.Builder(rsaJWK)
.x509CertChain(Collections.singletonList(Base64.encode(clientCert.getEncoded())))
.build();
// Print the public JWK set, required for the client metadata
System.out.println(new JWKSet(rsaJWK.toPublicJWK()));
// Print the PEM-encoded client certificate
System.out.println(X509CertUtils.toPEMString(clientCert));
// Print the private JWK set
System.out.println(new JWKSet(rsaJWK).toString(false));
// Print the PEM-encoded private key
System.out.println(
"-----BEGIN PRIVATE KEY-----\n" +
Base64.encode(rsaJWK.toPrivateKey().getEncoded()) + "\n" +
"-----END PRIVATE KEY-----\n");