Open Closed

swagger authorization error #6312


User avatar
0
it@keystonecustomhome.com created
  • ABP Framework version: 8rc3

Need help configuring swagger authorization. can't get past the following error

error:invalid_request
error_description:The specified 'redirect_uri' is not valid for this client application.
error_uri:https://documentation.openiddict.com/errors/ID2043


7 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    The specified 'redirect_uri' is not valid for this client application

    You can check the database OpeniddictApplications table.

    The Swagger's Redirect_uri should be like this:

    ["https://localhost:<YourPort>/swagger/oauth2-redirect.html"]

  • User Avatar
    0
    it@keystonecustomhome.com created

    thank you, that got me further. Now I'm getting an

    Auth ErrorError: response status is 400, error: invalid_request, description: Multiple client credentials cannot be specified.

    an advice appreciated. Thank you

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I guess you entered client_secret value. you can try to leave it empty.

  • User Avatar
    0
    it@keystonecustomhome.com created

    That doesn't work either without a client Id, the first time it sends me to a login screen. After entering admin credentials I am presented with the screenshot. after reentering admin credentials I get the error "Auth ErrorError: response status is 401, error: invalid_client, description: The mandatory 'client_id' parameter is missing."

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    It seems that you have made some changes, ABP didn't use that.

    Could you share a test project to reproduce the problem? I will check it. my email is shiwei.liang@volosoft.com

  • User Avatar
    0
    it@keystonecustomhome.com created

    It has been sent. Thank you

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Sorry, I didn't receive the email. my email is shiwei.liang@volosoft.com

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35