swagger-editor
swagger-editor copied to clipboard
Validation error oauth2RedirectUri configuration is not passed
the issue https://github.com/swagger-api/swagger-editor/issues/1503 is closed to I open the new one.
the old issue said:
"When Swagger is deployed with authentication type: "ACCESSCODE" or "IMPLICIT" OAuth 2.0 authorization is failing on Swagger Editor with the following error: validation error oauth2RedirectUri configuration is not passed. Oauth2 authorization cannot be performed.
Authorization works without any problem on Swagger UI."
STEPS TO REPRODUCE:
- go to: http://editor.swagger.io - Swagger Petstore is loaded [ Base URL: petstore.swagger.io/v2 ]
- click on 'authorize' button
- enter client_id in the implicit flow
- check both scopes
- click 'authorize' button
ERROR:
validation erroroauth2RedirectUri configuration is not passed. Oauth2 authorization cannot be performed.
@SzymonKlimuk I am facing the same issue with ACCESSCODE flow. Did you find a solution. I have modified the following on the petstore yaml
securityDefinitions:
petstore_auth:
type: oauth2
authorizationUrl: 'https://domain/adfs/oauth2/authorize?redirect_uri=https://domain/redirect.aspx'
tokenUrl: 'https://domain/adfs/oauth2/token'
flow: accessCode
scopes:
'write:pets': modify pets in your account
'read:pets': read your pets
This is related to Swagger Ui inside the Swagger Editor. The same yaml/json works ok (more or less) on the standalone Swagger UI
I had the same problem, any update about it?
I am still waiting for any response from swagger team
Bug confirmed - we need to provide an OAuth redirector in the Docker image.
@shockey Is #1969 a duplicate of this? Or at least an overlap. Is there traction?
i have the same problem how to fix?
so it only error in new swagger editer(next) i will just use the old one