From 87d9fe0363fb861f1d1bf05abb6ec38c172bdca4 Mon Sep 17 00:00:00 2001 From: golobitch Date: Tue, 6 Aug 2024 00:13:49 +0200 Subject: [PATCH] docs(openapi): auth return grantId for grant lookup via interaction id --- packages/auth/src/interaction/routes.test.ts | 2 +- packages/auth/src/openapi/specs/id-provider.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/auth/src/interaction/routes.test.ts b/packages/auth/src/interaction/routes.test.ts index 38e2271067..8b5a539cb4 100644 --- a/packages/auth/src/interaction/routes.test.ts +++ b/packages/auth/src/interaction/routes.test.ts @@ -529,7 +529,7 @@ describe('Interaction Routes', (): void => { describe('IDP - Grant details', (): void => { let grant: Grant let access: Access - let interaction: Interaction; + let interaction: Interaction beforeAll(async (): Promise => { grant = await Grant.query().insert({ diff --git a/packages/auth/src/openapi/specs/id-provider.yaml b/packages/auth/src/openapi/specs/id-provider.yaml index d3be9e897b..ad5e1afd7f 100644 --- a/packages/auth/src/openapi/specs/id-provider.yaml +++ b/packages/auth/src/openapi/specs/id-provider.yaml @@ -129,6 +129,9 @@ paths: - PENDING - APPROVED - DENIED + grantId: + description: Id of a grant + type: string '401': description: Unauthorized '404':