postmanlabs / openapi-to-postman

Plugin for converting OpenAPI 3.0 specs to the Postman Collection (v2) format
Apache License 2.0
912 stars 195 forks source link

adding two different Bearer Tokens across the application #397

Open amgad01 opened 3 years ago

amgad01 commented 3 years ago

I am trying to add two different Authorization bearer tokens across the application (i.e. internalBearerAuth and externalBearerAuth in the securitySchemes :

>  securitySchemes:
>     externalBearerAuth :     
>       type: http
>       scheme: bearer
>       bearerFormat: JWT    
>     internalBearerAuth :           
>       type: http
>       scheme: bearer
>       bearerFormat: JWT   
>       

and use them in different requests, but after the conversion i find both different types converted into the same output: `

"auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "" } ] }`

VShingala commented 1 year ago

@amgad01 ATM, Postman collection format only supports one security scheme / Authorization defined at a time. This means even if module adds support for this, Postman collection doesn't persist it.