Open Closed

unauthorized error when upgrade to ABP Framework version 8.2 #7514


User avatar
1
liyingji created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

  • ABP Framework version: v8.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server) *Tiered (for MVC) or Auth Server Separated : yes
  • Exception message and full stack trace:no exception
  • Steps to reproduce the issue: I upgrade my application from 8.0 to 8.2, using abp cli, the application running ok, login in admin; But it seems the admin was unauthorized, can not access any page!

4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please share the application logs.txt.

    liming.ma@volosoft.com
    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please try this solution:

    https://github.com/abpframework/abp/issues/20145#issuecomment-2202052771

  • User Avatar
    0
    liyingji created

    Thanks ! It does work by adding following Nuget package in ApiHost project <PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="7.5.1" /> <PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.5.1" /> <PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="7.5.1" />

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Great

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