Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Nov 19, 2024
1 parent 69083cd commit 08be88e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,9 @@ export class OpenId4VcIssuerService {
grants[preAuthorizedCodeGrantIdentifier] = {
'pre-authorized_code': preAuthorizedCode ?? (await agentContext.wallet.generateNonce()),
tx_code: txCode,
authorization_server: config.issuerMetadata.authorizationServers ? authorizationServerUrl : undefined,
authorization_server: config.issuerMetadata.credentialIssuer.authorization_servers
? authorizationServerUrl
: undefined,
}
}

Expand All @@ -673,7 +675,9 @@ export class OpenId4VcIssuerService {
// but same is true for the pre-auth code and users of credo can also provide that value. We can't easily do unique constraint with askat
authorizationCodeFlowConfig.issuerState ??
TypedArrayEncoder.toBase64URL(agentContext.wallet.getRandomValues(32)),
authorization_server: config.issuerMetadata.authorizationServers ? authorizationServerUrl : undefined,
authorization_server: config.issuerMetadata.credentialIssuer.authorization_servers
? authorizationServerUrl
: undefined,
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/openid4vc/tests/openid4vc.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ describe('OpenId4Vc', () => {
expect(issuer1Record.credentialConfigurationsSupported).toEqual({
universityDegree: {
format: 'mso_mdoc',
cryptographic_binding_methods_supported: ['did:key'],
cryptographic_binding_methods_supported: ['did:key', 'jwk'],
proof_types_supported: {
jwt: {
proof_signing_alg_values_supported: ['ES256', 'EdDSA'],
Expand Down
2 changes: 1 addition & 1 deletion packages/openid4vc/tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function createAgentFromModules<MM extends ModulesMap>(
label,
walletConfig: { id: utils.uuid(), key: utils.uuid() },
allowInsecureHttpUrls: true,
logger: new TestLogger(LogLevel.debug),
logger: new TestLogger(LogLevel.off),
},
dependencies: {
...agentDependencies,
Expand Down

0 comments on commit 08be88e

Please sign in to comment.