Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth2 Implicit: redirect_uri is hardcode it is sending always port 3200 #55

Open
jurabek opened this issue Apr 9, 2019 · 0 comments
Open

Comments

@jurabek
Copy link

jurabek commented Apr 9, 2019

Gin route listening port 5050

Authorization configured:

// @in header
// @name Authorization
// @securitydefinitions.oauth2.implicit OAuth2Implicit
// @authorizationurl http://localhost:5000/connect/authorize
// @tokenUrl http://localhost:5000/connect/token
// @scope.basket-api
  • Authorization Server redirect_uri validation failing:
Invalid redirect_uri: http://localhost:3200/oauth2-redirect.html
      {
        "ClientId": "basket-api-swagger-ui",
        "ClientName": "Basket API Swagger UI",
        "AllowedRedirectUris": [
          "http://localhost:5050/swagger/oauth2-redirect.html"
        ],
        "SubjectId": "anonymous",
        "RequestedScopes": "",
        "Raw": {
          "response_type": "token",
          "client_id": "basket-api-swagger-ui",
          "redirect_uri": "http://localhost:3200/oauth2-redirect.html",
          "scope": "basket-api",
          "state": "VHVlIEFwciAwOSAyMDE5IDE1OjE5OjA1IEdNVCswMjAwIChDZW50cmFsIEV1cm9wZWFuIFN1bW1lciBUaW1lKQ=="
        }
      }

AllowedRedirectUris configured for port 5050 but swagger client sending port 3200

As mentioned here it must be configurable on SwaggerUIBundle.js I just wanted to figure out swagger-ui-bundle.js but everything encoded...

Screenshot 2019-04-09 at 15 45 24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant