Discussions

Ask a Question
Back to All

OAuth2 bearer token with apiKey in JWT token??

(edited)

I have an API Reference that is imported via a swagger.json file using OpenAPI 3.0.1. I see that the full securityScheme object type is not supported: https://docs.readme.com/docs/openapi-compatibility-chart#security-scheme-object

The documentation says to just use the JWT flow, which I have working in general, but I can not figure out how to get the apiKey I send through in the JWT token to generate as part of the api reference "try it" section like in this example: https://docs.readme.com/docs/passing-data-to-jwt#oauth-and-api-key-authentication

Here is an example of one of my tokens. I would expect that if my api was setup properly, this apiKey would show up in the section where you can run the example requests, but it does not.

<https://jwt.ms/#id_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiVGVzdCBOYW1lIiwiZW1haWwiOiJub3JlcGx5QG5vcmVwbHkuY29tIiwiYXBpS2V5IjoidGVzdGluZzEyMyIsImlhdCI6MTY1MDk4NDQxNH0.GnoCOgEZp8vxrGy9XP407ugup0n8kq8i6f10Nl85Nas>

I'm missing something here, and I'm hoping someone can shed some light for me.

Thanks!