Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.net.URL;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
Expand Down Expand Up @@ -1015,6 +1016,12 @@ private void adjustClientMetadata(Map<String, Object> merged, Map<String, Object
// "FAPI 1.0 Advanced" which requires certificate-bound access tokens.
merged.putIfAbsent("tls_client_certificate_bound_access_tokens", Boolean.TRUE);

// the latest security profile ("v2") requires that id tokens are always encrypted
merged.putIfAbsent("id_token_encrypted_response_alg", "RSA-OAEP");
merged.putIfAbsent("id_token_encrypted_response_enc", "A256GCM");
// and that an acr value is always returned
merged.putIfAbsent("default_acr_values", Arrays.asList("urn:brasil:openbanking:loa3"));

// Use some claims in the software statement as default values
// for some standard claims. See also:
//
Expand Down