I have setup my API using OAuth2 authorization and an access_code grant type. Additionally, my API expects the final authorization token to be attached to further requests as an Authorization header
So for a token set as rvhaidktAWowLnxWjAa75DJKlj98, each request should have the following header.
Authorization: Bearer rvhaidktAWowLnxWjAa75DJKlj98
The OAuth exchange works, but SmartDocs is attaching the token as the URL param oauth_token
So, it's actually being attached as
GET /resource?oauth_token=rvhaidktAWowLnxWjAa75DJKlj98
Is there a way to configure SmartDocs so that it attaches the OAuth token in the headers?
Solved! Go to Solution.
You should be able to control this with the security settings for the revision of the model. This is what that should look like:
You should be able to control this with the security settings for the revision of the model. This is what that should look like: