1- import { AuthzFlowType , CredentialOfferPayloadV1_0_13 , CredentialOfferRequestWithBaseUrl } from '@sphereon/oid4vci-common' ;
1+ import { AuthzFlowType , CredentialOfferPayloadV1_0_13 , CredentialOfferRequestWithBaseUrl , PRE_AUTH_GRANT_LITERAL } from '@sphereon/oid4vci-common' ;
22
33export const IDENTIPROOF_ISSUER_URL = 'https://issuer.research.identiproof.io' ;
44export const IDENTIPROOF_AS_URL = 'https://auth.research.identiproof.io' ;
@@ -48,6 +48,11 @@ export const INITIATION_TEST: CredentialOfferRequestWithBaseUrl = {
4848 scheme : 'openid-credential-offer' ,
4949 supportedFlows : [ AuthzFlowType . PRE_AUTHORIZED_CODE_FLOW ] ,
5050 version : 1013 ,
51+ txCode : {
52+ description : 'Please provide the one-time code that was sent via e-mail' ,
53+ input_mode : 'numeric' ,
54+ length : 4 ,
55+ } ,
5156 userPinRequired : true , // Determined from above tx_code
5257} ;
5358export const INITIATION_TEST_V1_0_08 : CredentialOfferRequestWithBaseUrl = {
@@ -84,7 +89,7 @@ export const IDENTIPROOF_AS_METADATA = {
8489 token_endpoint_auth_methods_supported : [ 'client_secret_basic' , 'client_secret_post' , 'client_secret_jwt' , 'private_key_jwt' ] ,
8590 jwks_uri : 'https://auth.research.identiproof.io/oauth2/jwks' ,
8691 response_types_supported : [ 'code' ] ,
87- grant_types_supported : [ 'authorization_code' , 'urn:ietf:params:oauth:grant-type:pre-authorized_code' , 'client_credentials' , 'refresh_token' ] ,
92+ grant_types_supported : [ 'authorization_code' , PRE_AUTH_GRANT_LITERAL , 'client_credentials' , 'refresh_token' ] ,
8893 revocation_endpoint : 'https://auth.research.identiproof.io/oauth2/revoke' ,
8994 revocation_endpoint_auth_methods_supported : [ 'client_secret_basic' , 'client_secret_post' , 'client_secret_jwt' , 'private_key_jwt' ] ,
9095 introspection_endpoint : 'https://auth.research.identiproof.io/oauth2/introspect' ,
@@ -168,7 +173,7 @@ export const SPRUCE_OID4VCI_METADATA = {
168173 credential_endpoint : 'https://ngi-oidc4vci-test.spruceid.xyz/credential' ,
169174 token_endpoint : 'https://ngi-oidc4vci-test.spruceid.xyz/token' ,
170175 jwks_uri : 'https://ngi-oidc4vci-test.spruceid.xyz/jwks' ,
171- grant_types_supported : [ 'urn:ietf:params:oauth:grant-type:pre-authorized_code' ] ,
176+ grant_types_supported : [ PRE_AUTH_GRANT_LITERAL ] ,
172177 credentials_supported : {
173178 OpenBadgeCredential : {
174179 formats : {
@@ -232,7 +237,7 @@ export const DANUBE_OIDC_METADATA = {
232237 ] ,
233238 } ,
234239 code_challenge_methods_supported : [ 'plain' , 'S256' ] ,
235- grant_types_supported : [ 'authorization_code' , 'urn:ietf:params:oauth:grant-type:pre-authorized_code' ] ,
240+ grant_types_supported : [ 'authorization_code' , PRE_AUTH_GRANT_LITERAL ] ,
236241 token_endpoint_auth_methods_supported : [ 'client_secret_post' , 'client_secret_basic' ] ,
237242 authorization_endpoint : 'https://oidc4vc.uniissuer.io/authorize' ,
238243 token_endpoint : 'https://oidc4vc.uniissuer.io/token' ,
@@ -245,7 +250,7 @@ export const WALT_OID4VCI_METADATA = {
245250 pushed_authorization_request_endpoint : 'https://jff.walt.id/issuer-api/oidc/par' ,
246251 issuer : 'https://jff.walt.id/issuer-api' ,
247252 jwks_uri : 'https://jff.walt.id/issuer-api/oidc' ,
248- grant_types_supported : [ 'authorization_code' , 'urn:ietf:params:oauth:grant-type:pre-authorized_code' ] ,
253+ grant_types_supported : [ 'authorization_code' , PRE_AUTH_GRANT_LITERAL ] ,
249254 request_uri_parameter_supported : true ,
250255 credentials_supported : {
251256 VerifiableDiploma : {
0 commit comments