You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Until we figure out how to internally store the access token (this.accessToken), we can add a parameter to functions which map authenticated endpoints, so that users can supply a callback which is responsible for returning the access token.
Maybe the tokenCallback could be set as an option in the APIClient constructor. And every route which is configured with the bearer security setting would retrieve the token when needed. This way i would not need to add the function to each call in an API which depends on it for every route.
@arkraft what we are implementing here is the security declaration in the operation object. What you are talking about is the security declaration in the swagger object, right?
The difference is, that the security declaration in an operation object only apply to this specific operation, while the security declaration in the swagger object applies to the whole API.
ffflorian
changed the title
Add support for "Bearer Authentication"
Add support for "Bearer Authentication" in operations
Aug 7, 2019
Bearer Authentication can be enabled in Swagger when applying a
security
property.swagger.json
Until we figure out how to internally store the access token (
this.accessToken
), we can add a parameter to functions which map authenticated endpoints, so that users can supply a callback which is responsible for returning the access token.Suggestion
The text was updated successfully, but these errors were encountered: