Skip to content

Commit

Permalink
feat: Update wallet metadata for verifiers #2942
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Oct 24, 2024
1 parent 6bb94f5 commit d579e5f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 31 deletions.
41 changes: 15 additions & 26 deletions lib/app/shared/constants/constants_json.dart
Original file line number Diff line number Diff line change
Expand Up @@ -303,21 +303,18 @@ abstract class ConstantsJson {
};

static const walletMetadataForIssuers = <String, dynamic>{
'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': [
Expand All @@ -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 = <String, dynamic>{
Expand Down
5 changes: 0 additions & 5 deletions lib/app/shared/constants/parameters.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit d579e5f

Please sign in to comment.