From df74ccddcab06a032ca47a033a46bd0268826f72 Mon Sep 17 00:00:00 2001 From: nklomp Date: Fri, 25 Feb 2022 03:36:54 +0100 Subject: [PATCH] feat: Add supported DID methods --- .../src/agent/DidAuthSiopOpAuthenticator.ts | 2 +- .../src/types/IDidAuthSiopOpAuthenticator.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/did-auth-siop-op-authenticator/src/agent/DidAuthSiopOpAuthenticator.ts b/packages/did-auth-siop-op-authenticator/src/agent/DidAuthSiopOpAuthenticator.ts index ea8d124ef..c1bcbbd12 100644 --- a/packages/did-auth-siop-op-authenticator/src/agent/DidAuthSiopOpAuthenticator.ts +++ b/packages/did-auth-siop-op-authenticator/src/agent/DidAuthSiopOpAuthenticator.ts @@ -65,7 +65,7 @@ export class DidAuthSiopOpAuthenticator implements IAgentPlugin { return Promise.reject(new Error(`Session with id: ${args.sessionId} already present`)) } - const session = new OpSession({ sessionId, identifier: args.identifier, expiresIn: args.expiresIn, context }) + const session = new OpSession({ sessionId, identifier: args.identifier, expiresIn: args.expiresIn, supportedDidMethods: args.supportedDidMethods, context }) await session.init() this.sessions[sessionId] = session diff --git a/packages/did-auth-siop-op-authenticator/src/types/IDidAuthSiopOpAuthenticator.ts b/packages/did-auth-siop-op-authenticator/src/types/IDidAuthSiopOpAuthenticator.ts index 3a1eee658..6e30e00d7 100644 --- a/packages/did-auth-siop-op-authenticator/src/types/IDidAuthSiopOpAuthenticator.ts +++ b/packages/did-auth-siop-op-authenticator/src/types/IDidAuthSiopOpAuthenticator.ts @@ -81,6 +81,7 @@ export interface IGetSiopSessionArgs { export interface IRegisterSiopSessionArgs { identifier: IIdentifier + supportedDidMethods?: string[] sessionId?: string expiresIn?: number }