Skip to content

Commit

Permalink
chore: contact connection for identifierType === URL
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Dec 6, 2024
1 parent 5c5a4bc commit 8deddbc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/oid4vci-holder/src/agent/OID4VCIHolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,20 @@ export class OID4VCIHolder implements IAgentPlugin {
type: identifierType,
correlationId,
},
...(identifierType === URL && {
connection: {
type: ConnectionType.OPENID_CONNECT,
config: {
clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01',
clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0',
scopes: ['auth'],
issuer: 'https://example.com/app-test',
redirectUrl: 'app:/callback',
dangerouslyAllowInsecureHttpRequests: true,
clientAuthMethod: 'post' as const,
},
},
}),
}

await context.agent.emit(OID4VCIHolderEvent.CONTACT_IDENTITY_CREATED, {
Expand Down

0 comments on commit 8deddbc

Please sign in to comment.