-
Notifications
You must be signed in to change notification settings - Fork 0
Update description on bearer auth #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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: | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would suggest to add a general description somewhere (maybe here) to how the whole authentication flow looks like
And by the way in case the toke expires, how would the client get a new token? should they call the same endpoint with |
||
| get access token from endpoint [token](#tag/Oauth/paths/~1token/post) | ||
|
|
||
| then add it to Authorization request header as follow: | ||
|
|
||
| `Authorization: Bearer <access token>` | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine to keep the long line as it was it you want, redocly will display the whole line underneath the title anyway
