Skip to content

Commit

Permalink
Merge pull request #3244 from TalaoDAO/OIDC4VCI-refactor
Browse files Browse the repository at this point in the history
Oidc4 vci refactor
  • Loading branch information
hawkbee1 authored Jan 23, 2025
2 parents 4443285 + e6ebc24 commit 5263ee3
Show file tree
Hide file tree
Showing 64 changed files with 1,657 additions and 1,740 deletions.
12 changes: 12 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="openid-vc" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="altme-openid-vc" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="altme-openid-credential-offer" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
Expand Down
20 changes: 20 additions & 0 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,26 @@
<string>openid-vc</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>openid</string>
<key>CFBundleURLSchemes</key>
<array>
<string>altme-openid-vc</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>openid</string>
<key>CFBundleURLSchemes</key>
<array>
<string>altme-openid-credential-offer</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
Expand Down
2 changes: 1 addition & 1 deletion lib/app/shared/constants/constants_json.dart
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ abstract class ConstantsJson {
'client_secret_basic',
'client_secret_jwt',
],
'credential_offer_endpoint': ['openid-credential-offer://', 'haip://'],
'credential_offer_endpoint': ['openid-credential-offer://', 'haip://', 'altme-openid-credential-offer'],
'client_name': '${Parameters.appName} wallet',
'contacts': ['[email protected]'],
};
Expand Down
2 changes: 2 additions & 0 deletions lib/app/shared/constants/parameters.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class Parameters {

static const oidc4vcUniversalLink =
'https://app.altme.io/app/download/callback';
static const walletOfferDeepLink = 'altme-openid-credential-offer';
static const walletPresentationDeepLink = 'altme-openid-vc';

static const authorizeEndPoint =
'https://app.altme.io/app/download/authorize';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ extension CredentialSubjectTypeExtension on CredentialSubjectType {
if (credentialModel.display?.backgroundColor != null) {
backgroundColor = Color(
int.parse(
// ignore: lines_longer_than_80_chars
'FF${credentialModel.display?.backgroundColor!.replaceAll('#', '')}',
radix: 16,
),
Expand Down
1 change: 0 additions & 1 deletion lib/app/shared/enum/type/type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export 'credential_subject_type/credential_subject_type.dart';
export 'import_wallet_types.dart';
export 'kyc_vc_type.dart';
export 'message_type/message_type.dart';
export 'oidc4vc_type.dart';
export 'profile/did_key_type.dart';
export 'profile/profile.dart';
export 'restore_type.dart';
Expand Down
Loading

0 comments on commit 5263ee3

Please sign in to comment.