Can you share the full API definition? I assume you’re getting the errors in 
swagger-editor?

 

 

 

From: <[email protected]> on behalf of Gino Franco Velasco 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Friday, 7 July 2017 at 0:08
To: Swagger <[email protected]>
Subject: OAuth2 Validation Error at Online Swagger UI

 

Hi there, 

 

When I try to use OAuth2 security, I get a validation error. I couldn't find 
any information about oauth2RedirectUri. What am I missing in my swagger 
specification?

 

OAuth2:
    type: oauth2
    flow: accessCode
    authorizationUrl: http://localhost:8000/sample/oauth/authorize
    tokenUrl: http://localhost:8000/sample/oauth/token
    scopes:
      read: Grants read access
 

Errors
Hide
Validation error
oauth2RedirectUri configuration is not passed. Oauth2 authorization cannot be 
performed.
 

 

References :

 

+ https://swagger.io/docs/specification/authentication/

 

 

Kind regards,

 

Gino

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to