diff --git a/packages/oidc4vc/lib/src/oidc4vc.dart b/packages/oidc4vc/lib/src/oidc4vc.dart index f75e400ba..2b6f3083c 100644 --- a/packages/oidc4vc/lib/src/oidc4vc.dart +++ b/packages/oidc4vc/lib/src/oidc4vc.dart @@ -1114,7 +1114,6 @@ class OIDC4VC { tokenParameters: issuerTokenParameters, clientAuthentication: clientAuthentication, cnonce: nonce, - iss: issuerTokenParameters.clientId, ); credentialData['proof'] = { @@ -1411,13 +1410,11 @@ class OIDC4VC { Future getIssuerJwt({ required IssuerTokenParameters tokenParameters, required ClientAuthentication clientAuthentication, - required String iss, String? cnonce, }) async { final iat = (DateTime.now().millisecondsSinceEpoch / 1000).round() - 30; final payload = { - 'iss': iss, 'iat': iat, 'aud': tokenParameters.issuer, }; @@ -1603,7 +1600,7 @@ class OIDC4VC { 'aud': tokenParameters.audience, 'exp': iat + 1000, 'sub': tokenParameters.did, - 'iss': tokenParameters.did, + //'iss': tokenParameters.did, 'vp': { '@context': ['https://www.w3.org/2018/credentials/v1'], 'id': presentationId, @@ -1708,7 +1705,7 @@ class OIDC4VC { 'aud': tokenParameters.audience, // devrait ĂȘtre verifier 'exp': iat + 1000, 'sub': issAndSub, - 'iss': issAndSub, + // 'iss': issAndSub, }; if (tokenParameters.nonce != null) { diff --git a/packages/oidc4vc/test/src/oidc4vc_test.dart b/packages/oidc4vc/test/src/oidc4vc_test.dart index aee5c7a99..839224a1e 100644 --- a/packages/oidc4vc/test/src/oidc4vc_test.dart +++ b/packages/oidc4vc/test/src/oidc4vc_test.dart @@ -684,7 +684,6 @@ void main() { final issuerJwt = await oidc4vc.getIssuerJwt( tokenParameters: tokenParameters, clientAuthentication: ClientAuthentication.clientId, - iss: clientId, cnonce: '2da2d506-0910-11ef-9e49-0a1628958560', );