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
I am having issues to get swagger-ui to work with an API that requires access tokens from 2 different issuers. The OAuth setup works for a single issuer. However when I add another issuer into the swagger.json and adjust the security tag on some methods to use the other issuer, the swagger-ui only ever pics the last issuer in the list to present the logon screen. Below the setup I roughly have:
the 2 methods:
"/methodA": {"get": {
"tags": ["a"],
"summary": "method A is only accessible with tokens from issuer A",
"consumes": ["application/json"],
"produces": ["application/json"],
"parameters": [],
"responses": {"200": {
"description": "successful operation",
"schema": {"type": "string"}
}},
"security": [{"iss_a": []}]
}}
"/methodB": {"get": {
"tags": ["b"],
"summary": "method B is only accessible with tokens from issuer B",
"consumes": ["application/json"],
"produces": ["application/json"],
"parameters": [],
"responses": {"200": {
"description": "successful operation",
"schema": {"type": "string"}
}},
"security": [{"iss_b": []}]
}}
I am having issues to get swagger-ui to work with an API that requires access tokens from 2 different issuers. The OAuth setup works for a single issuer. However when I add another issuer into the swagger.json and adjust the security tag on some methods to use the other issuer, the swagger-ui only ever pics the last issuer in the list to present the logon screen. Below the setup I roughly have:
the 2 methods:
the issuers configuration
I am using swagger 2.0 spec with swagger-ui version 2.1.0. I also tried the develop_2.0 branch without much luck.
Anyone got any suggestions of what may be going wrong here?
Thanks a lot.
The text was updated successfully, but these errors were encountered: