How to use an Authorization Header Bearer token with SmartDocs

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 Solved
2 1 1,146
1 ACCEPTED 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:

1476-fullscreen-11-11-15-4-31-pm.png

View solution in original post

1 REPLY 1

You should be able to control this with the security settings for the revision of the model. This is what that should look like:

1476-fullscreen-11-11-15-4-31-pm.png