From d579e5f6b49881106494eb5f8fb6188578c63203 Mon Sep 17 00:00:00 2001 From: Bibash Shrestha Date: Thu, 24 Oct 2024 15:18:08 +0545 Subject: [PATCH] feat: Update wallet metadata for verifiers #2942 --- lib/app/shared/constants/constants_json.dart | 41 +++++++------------- lib/app/shared/constants/parameters.dart | 5 --- 2 files changed, 15 insertions(+), 31 deletions(-) diff --git a/lib/app/shared/constants/constants_json.dart b/lib/app/shared/constants/constants_json.dart index 18988261c..c67bb87d1 100644 --- a/lib/app/shared/constants/constants_json.dart +++ b/lib/app/shared/constants/constants_json.dart @@ -303,21 +303,18 @@ abstract class ConstantsJson { }; static const walletMetadataForIssuers = { + 'client_name': Parameters.walletName, + 'authorization_endpoint': Parameters.authorizationEndPoint, + 'response_types_supported': ['vp_token', 'id_token'], 'vp_formats_supported': { - 'jwt_vp': { - 'alg': ['ES256', 'ES256K', 'EdDSA'], - }, - 'jwt_vc': { - 'alg': ['ES256', 'ES256K', 'EdDSA'], + 'jwt_vc_json': { + 'alg_values_supported': ['ES256', 'ES256K', 'EdDSA'], }, 'jwt_vp_json': { - 'alg': ['ES256', 'ES256K', 'EdDSA'], - }, - 'jwt_vc_json': { - 'alg': ['ES256', 'ES256K', 'EdDSA'], + 'alg_values_supported': ['ES256', 'ES256K', 'EdDSA'], }, 'vc+sd-jwt': { - 'alg': ['ES256', 'ES256K', 'EdDSA'], + 'alg_values_supported': ['ES256', 'ES256K', 'EdDSA'], }, 'ldp_vp': { 'proof_type': [ @@ -336,23 +333,15 @@ abstract class ConstantsJson { ], }, }, - 'grant_types': ['authorization code', 'pre-authorized_code'], - 'redirect_uris': [Parameters.authorizationEndPoint], - 'subject_syntax_types_supported': ['did:key', 'did:jwk'], - 'subject_syntax_types_discriminations': [ - 'did:key:jwk_jcs-pub', - 'did:ebsi:v1', - ], - 'token_endpoint_auth_method_supported': [ - 'none', - 'client_id', - 'client_secret_post', - 'client_secret_basic', - 'client_secret_jwt', + 'client_id_schemes_supported': [ + 'did', + 'redirect_uri', + 'x509_san_dns', + 'verifier_attestation' ], - 'credential_offer_endpoint': ['openid-credential-offer://', 'haip://'], - 'client_name': '${Parameters.appName} wallet', - 'contacts': ['contact@talao.io'], + 'request_object_signing_alg_values_supported': ['ES256', 'ES256K', 'EdDSA'], + 'presentation_definition_uri_supported': true, + 'contacts': ['contact@talao.io'] }; static const walletMetadataForVerifiers = { diff --git a/lib/app/shared/constants/parameters.dart b/lib/app/shared/constants/parameters.dart index 41851f10b..4d7dd001f 100644 --- a/lib/app/shared/constants/parameters.dart +++ b/lib/app/shared/constants/parameters.dart @@ -105,11 +105,6 @@ class Parameters { // true for altme static const bool showTezotopiaCard = true; - //'https://app.talao.co/app/download/authorize' for Talao - // 'https://app.altme.io/app/download/authorize' for altme - static const String redirectUri = - 'https://app.altme.io/app/download/authorize'; - //'https://app.talao.co/app/download/callback' for Talao // 'https://app.altme.io/app/download/callback' for altme static const String authorizationEndPoint =