From a9901a48a0ac47495f559b9173724c2d0fa207f9 Mon Sep 17 00:00:00 2001 From: Hendrik Date: Thu, 8 Aug 2024 16:17:54 +0700 Subject: [PATCH 1/2] update description on bearerAuth security schemes --- fortytools.yaml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/fortytools.yaml b/fortytools.yaml index df48619..af197a6 100644 --- a/fortytools.yaml +++ b/fortytools.yaml @@ -17,8 +17,7 @@ security: user: [] validuntil: [] signature: [] -- ClientCredentials: [] - BearerAuth: [] +- bearerAuth: [] tags: - name: Account description: Accounts as in Accounting @@ -1494,7 +1493,7 @@ paths: tags: - Oauth description: | - Authenticate client ID and client secret to get access token + Get access token security: [] requestBody: description: the client id and client secret that you get from ERP. @@ -3207,14 +3206,12 @@ components: `sha2($client_user_api_token + ':' + $app_token + ':' + $validuntil)` name: signature in: query - ClientCredentials: - type: oauth2 - description: look at Oauth documentation - flows: - clientCredentials: - tokenUrl: https://app.fortytools.com/api/v2/token/ - scopes: {} - BearerAuth: + bearerAuth: type: http - scheme: Bearer - description: get access token from oauth2 + scheme: bearer + description: | + get access token from endpoint [token](#tag/Oauth/paths/~1token/post) + + then add it to Authorization request header as follow: + + `Authorization: Bearer ` \ No newline at end of file From d0c42ed440f8acea313443f3c157001d262a190a Mon Sep 17 00:00:00 2001 From: Hendrik Date: Thu, 8 Aug 2024 16:19:18 +0700 Subject: [PATCH 2/2] add new line at the end of file --- fortytools.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fortytools.yaml b/fortytools.yaml index af197a6..6d6deb7 100644 --- a/fortytools.yaml +++ b/fortytools.yaml @@ -3214,4 +3214,4 @@ components: then add it to Authorization request header as follow: - `Authorization: Bearer ` \ No newline at end of file + `Authorization: Bearer `