-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into google_mlkit_barcode_scanning
- Loading branch information
Showing
66 changed files
with
1,254 additions
and
856 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,210 @@ | ||
import 'package:dio/dio.dart'; | ||
import 'package:oidc4vc/oidc4vc.dart'; | ||
|
||
enum OIDC4VCType { | ||
EBSIV2( | ||
issuerVcType: 'jwt_vc', | ||
verifierVpType: 'jwt_vp', | ||
offerPrefix: 'openid://initiate_issuance', | ||
presentationPrefix: 'openid-vc://', | ||
cryptographicBindingMethodsSupported: ['DID'], | ||
cryptographicSuitesSupported: [ | ||
'ES256K', | ||
'ES256', | ||
'ES384', | ||
'ES512', | ||
'RS256' | ||
], | ||
subjectSyntaxTypesSupported: ['did:ebsi'], | ||
grantTypesSupported: [ | ||
'authorization_code', | ||
'urn:ietf:params:oauth:grant-type:pre-authorized_code' | ||
], | ||
credentialSupported: ['VerifiableDiploma', 'VerifiableId'], | ||
schemaForType: true, | ||
oidc4VciDraft: | ||
'https://openid.net/specs/openid-connect-4-verifiable-credential-issuance-1_0-05.html#abstract', | ||
siopv2Draft: '', | ||
serviceDocumentation: | ||
'It is the profile of the EBSI V2 compliant test. DID for natural person is did:ebsi. The schema url is used as the VC type in the credential offer QR code. The prefix openid_initiate_issuance://', | ||
), | ||
|
||
EBSIV3( | ||
issuerVcType: 'jwt_vc', | ||
verifierVpType: 'jwt_vp', | ||
offerPrefix: 'openid://initiate_issuance', | ||
presentationPrefix: 'openid-vc://', | ||
cryptographicBindingMethodsSupported: ['DID'], | ||
credentialSupported: ['VerifiableDiploma', 'VerifiableId'], | ||
grantTypesSupported: [ | ||
'authorization_code', | ||
'urn:ietf:params:oauth:grant-type:pre-authorized_code' | ||
], | ||
cryptographicSuitesSupported: [ | ||
'ES256K', | ||
'ES256', | ||
'ES384', | ||
'ES512', | ||
'RS256' | ||
], | ||
subjectSyntaxTypesSupported: ['did:key'], | ||
schemaForType: false, | ||
oidc4VciDraft: | ||
'https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html', | ||
siopv2Draft: '', | ||
serviceDocumentation: '', | ||
), | ||
|
||
GAIAX( | ||
issuerVcType: 'ldp_vc', | ||
verifierVpType: 'ldp_vp', | ||
offerPrefix: 'openid-initiate-issuance://', | ||
presentationPrefix: 'openid-vc://', | ||
cryptographicBindingMethodsSupported: ['DID'], | ||
credentialSupported: ['EmployeeCredential'], | ||
grantTypesSupported: [ | ||
'authorization_code', | ||
'urn:ietf:params:oauth:grant-type:pre-authorized_code' | ||
], | ||
cryptographicSuitesSupported: [ | ||
'ES256K', | ||
'ES256', | ||
'ES384', | ||
'ES512', | ||
'RS256' | ||
], | ||
subjectSyntaxTypesSupported: ['did:key'], | ||
schemaForType: false, | ||
oidc4VciDraft: | ||
'https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html', | ||
siopv2Draft: '', | ||
serviceDocumentation: 'Issuer pour projet Docaposte Gaia-X', | ||
), | ||
|
||
DEFAULT( | ||
issuerVcType: 'ldp_vc', | ||
verifierVpType: 'ldp_vp', | ||
offerPrefix: 'openid-credential-offer://', | ||
presentationPrefix: 'openid-vc://', | ||
cryptographicBindingMethodsSupported: ['DID'], | ||
credentialSupported: [], | ||
grantTypesSupported: [ | ||
'authorization_code', | ||
'urn:ietf:params:oauth:grant-type:pre-authorized_code' | ||
], | ||
cryptographicSuitesSupported: [ | ||
'ES256K', | ||
'ES256', | ||
'ES384', | ||
'ES512', | ||
'RS256' | ||
], | ||
subjectSyntaxTypesSupported: ['did:ebsi', 'did:key', 'did:ethr', 'did:tz'], | ||
schemaForType: false, | ||
oidc4VciDraft: | ||
'https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html', | ||
siopv2Draft: '', | ||
serviceDocumentation: 'Last release of the OIDC4VC documentation', | ||
), | ||
|
||
ARF( | ||
issuerVcType: 'jwt_vc', | ||
verifierVpType: 'jwt_vp', | ||
offerPrefix: 'openid-credential-offer://', | ||
presentationPrefix: 'openid-vc://', | ||
cryptographicBindingMethodsSupported: ['DID'], | ||
credentialSupported: [], | ||
grantTypesSupported: [ | ||
'authorization_code', | ||
'urn:ietf:params:oauth:grant-type:pre-authorized_code' | ||
], | ||
cryptographicSuitesSupported: [ | ||
'ES256K', | ||
'ES256', | ||
'ES384', | ||
'ES512', | ||
'RS256' | ||
], | ||
subjectSyntaxTypesSupported: ['did:ebsi', 'did:key', 'did:ethr', 'did:tz'], | ||
schemaForType: false, | ||
oidc4VciDraft: '', | ||
siopv2Draft: '', | ||
serviceDocumentation: '', | ||
), | ||
|
||
JWTVC( | ||
issuerVcType: 'jwt_vc', | ||
offerPrefix: '', | ||
verifierVpType: 'jwt_vp', | ||
presentationPrefix: 'openid-vc://', | ||
cryptographicBindingMethodsSupported: ['DID'], | ||
credentialSupported: [], | ||
grantTypesSupported: [], | ||
cryptographicSuitesSupported: [ | ||
'ES256K', | ||
'ES256', | ||
'ES384', | ||
'ES512', | ||
'RS256' | ||
], | ||
subjectSyntaxTypesSupported: ['did:ion'], | ||
schemaForType: false, | ||
oidc4VciDraft: '', | ||
siopv2Draft: '', | ||
serviceDocumentation: '', | ||
); | ||
|
||
const OIDC4VCType({ | ||
required this.issuerVcType, | ||
required this.verifierVpType, | ||
required this.offerPrefix, | ||
required this.presentationPrefix, | ||
required this.cryptographicBindingMethodsSupported, | ||
required this.cryptographicSuitesSupported, | ||
required this.subjectSyntaxTypesSupported, | ||
required this.grantTypesSupported, | ||
required this.credentialSupported, | ||
required this.schemaForType, | ||
required this.oidc4VciDraft, | ||
required this.siopv2Draft, | ||
required this.serviceDocumentation, | ||
}); | ||
|
||
final String issuerVcType; | ||
final String verifierVpType; | ||
final String offerPrefix; | ||
final String presentationPrefix; | ||
final List<String> cryptographicBindingMethodsSupported; | ||
final List<String> cryptographicSuitesSupported; | ||
final List<String> subjectSyntaxTypesSupported; | ||
final List<String> grantTypesSupported; | ||
final List<String> credentialSupported; | ||
final bool schemaForType; | ||
final String oidc4VciDraft; | ||
final String siopv2Draft; | ||
final String serviceDocumentation; | ||
} | ||
|
||
extension OIDC4VCTypeX on OIDC4VCType { | ||
OIDC4VC get getOIDC4VC { | ||
return OIDC4VC( | ||
client: Dio(), | ||
oidc4vcModel: OIDC4VCModel( | ||
issuerVcType: issuerVcType, | ||
verifierVpType: verifierVpType, | ||
offerPrefix: offerPrefix, | ||
presentationPrefix: presentationPrefix, | ||
cryptographicBindingMethodsSupported: | ||
cryptographicBindingMethodsSupported, | ||
cryptographicSuitesSupported: cryptographicSuitesSupported, | ||
subjectSyntaxTypesSupported: subjectSyntaxTypesSupported, | ||
grantTypesSupported: grantTypesSupported, | ||
credentialSupported: credentialSupported, | ||
schemaForType: schemaForType, | ||
oidc4VciDraft: oidc4VciDraft, | ||
siopv2Draft: siopv2Draft, | ||
serviceDocumentation: serviceDocumentation, | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
lib/dashboard/drawer/ssi/manage_issuers_registry/widgets/widgets.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export 'grouped_section.dart'; | ||
export 'issuer_verifier_selector.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export 'view/oidc4vc_profile_page.dart'; |
Oops, something went wrong.