Skip to content

Conversation

@shunam
Copy link
Contributor

@shunam shunam commented Aug 8, 2024

add link to endpoint token so user know how to get access token.
add example to add to Authorization request header
removing client credential auth, because it will make user confuse.

ref: https://swagger.io/docs/specification/authentication/bearer-authentication/

@shunam
Copy link
Contributor Author

shunam commented Aug 8, 2024

here is the result.
image

- Oauth
description: |
Authenticate client ID and client secret to get access token
Get access token
Copy link
Contributor

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
Screenshot 2024-08-09 at 09 23 02

scheme: Bearer
description: get access token from oauth2
scheme: bearer
description: |
Copy link
Contributor

Choose a reason for hiding this comment

The 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

  1. getting uid and secret from client settings in app.fortytools.com
  2. getting access token from ...
  3. use this access token in each API request as a header Authorization: Bearer .....

And by the way in case the toke expires, how would the client get a new token? should they call the same endpoint with client_id and client_secret again? Please document this as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants