打开 关闭

Unable to auth swagger in production deployment #1387


User avatar
0
dwoodard 创建
  • ABP Framework version: v4.3.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue: Attempt to authorize swagger after deploying to production system.
  1. Browse to swagger
  2. Click Authorize
  3. Enter client_id and client_secret
  4. Press Authorize button


3 答案
  • User Avatar
    0
    dwoodard 创建

    Found this in the logs:

    2021-05-24 22:20:30.702 -05:00 [ERR] scope is missing {"ClientId":"Wms_Swagger","ClientName":"Wms_Swagger","RedirectUri":"https://xx.xx.51.47:44330/swagger/oauth2-redirect.html","AllowedRedirectUris":["https://xx.xx.51.47:44330/swagger/oauth2-redirect.html"],"SubjectId":"anonymous","ResponseType":"code","ResponseMode":"query","GrantType":"authorization_code","RequestedScopes":"","State":"TW9uIE1heSAyNCAyMDIxIDIyOjIwOjMwIEdNVC0wNTAwIChDZW50cmFsIERheWxpZ2h0IFRpbWUp","UiLocales":null,"Nonce":null,"AuthenticationContextReferenceClasses":null,"DisplayMode":null,"PromptMode":"","MaxAge":null,"LoginHint":null,"SessionId":null,"Raw":{"response_type":"code","client_id":"Wms_Swagger","redirect_uri":"https://xx.xx.51.47:44330/swagger/oauth2-redirect.html","state":"TW9uIE1heSAyNCAyMDIxIDIyOjIwOjMwIEdNVC0wNTAwIChDZW50cmFsIERheWxpZ2h0IFRpbWUp"},"$type":"AuthorizeRequestValidationLog"} 2021-05-24 22:20:30.702 -05:00 [ERR] Request validation failed

    However, I have no idea what I am supposed to do about this.

  • User Avatar
    0
    maliming 创建
    支持团队 Fullstack Developer

    You can select the scopes.

  • User Avatar
    0
    ServiceBot 创建
    支持团队 Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11