Starts in:
1 DAY
2 HRS
42 MIN
31 SEC
Starts in:
1 D
2 H
42 M
31 S
Open Closed

Permissions authorization not working when migrate abp 7.4.4 to 8.1.1 #7202


User avatar
0
maria_ruiz created
  • ABP Framework version: v8.1.1.
  • UI Type: Blazor WASM
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace: Authorization failed. These requirements were not met
  • Steps to reproduce the issue: Hi,

We are upgrading from abp 7.4.4 to 8.1.1 and when we authenticate and access the application it tells me in the browser console that we do not have these permissions for the admin user.

and when we go to access any entity it tells me that I don't have permissions.

Only happens to me when updating,

Has anything changed in the permissions and authentication that we missed?


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

    hi

    Please share the logs.txt of API website.

    liming.ma@volosoft.com

  • User Avatar
    0
    maria_ruiz created

    I have emailed you the logs.txt,

    thank you,

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you confirm if the Projects.Projects.View has been granted to your current user?

    You can clear Redis to make sure the cache has no wrong data.

    Authorization failed. These requirements were not met: PermissionRequirement: Projects.Projects.View

    And can you share the access_token of the HTTP request header?

  • User Avatar
    0
    maria_ruiz created

    hi,

    Yes i have the permissions

    We don't have Redis locally, I have installed it just in case and run the application again but it is still the same

    This is the token? eyJhbGciOiJSUzI1NiIsImtpZCI6IkUwNkNDMkFBNkYyNjg2M0Y5ODI0MDE1NkM3NUQ2RTk2IiwidHlwIjoiYXQrand0In0.eyJuYmYiOjE3MTU4NTM0NDMsImV4cCI6MTc0NzM4OTQ0MywiaXNzIjoiaHR0cHM6Ly9sb2NhbGhvc3Q6NDQzOTMiLCJhdWQiOiJTYW1wbGVzIiwiY2xpZW50X2lkIjoiU2FtcGxlc19CbGF6b3IiLCJzdWIiOiI5NzAxNjk5YS1jM2NlLThmZWMtMjM4NS0zYTEyNzQyYTFmYjQiLCJhdXRoX3RpbWUiOjE3MTU4NDEzOTcsImlkcCI6ImxvY2FsIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvZ2l2ZW5uYW1lIjoiYWRtaW4iLCJ1bmlxdWVfbmFtZSI6ImFkbWluIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYWRtaW4iLCJnaXZlbl9uYW1lIjoiYWRtaW4iLCJlbWFpbCI6ImFkbWluQGFicC5pbyIsInJvbGUiOiJhZG1pbiIsInBob25lX251bWJlcl92ZXJpZmllZCI6IkZhbHNlIiwiZW1haWxfdmVyaWZpZWQiOiJGYWxzZSIsIm5hbWUiOiJhZG1pbiIsInNpZCI6IkM2NkY5NjAzM0JBQjU1MjQxQURGNTQyQTcyRTM3QTNBIiwiaWF0IjoxNzE1ODUzNDQzLCJzY29wZSI6WyJvcGVuaWQiLCJwcm9maWxlIiwiU2FtcGxlcyIsInJvbGUiLCJlbWFpbCIsInBob25lIl0sImFtciI6WyJwd2QiXX0.GQChPQt6EgNLnzh2-c54Iz8jkxHv6JmS7-MCG1pvxIYTgbjrCtSPENgB1PLyfpm5dr5nKN6HCJUJXOELvFyU9Y_qloATey424fOLwiRAi6MTGQbz6KGviURjTvd_hBJDAqziWao0RdUlPoGzs-zemcaxT_bFg6IS4zKFMYWhykOKtPzSZnPJJ9ZWzGcmAuWGAlaPZE66KNvk2LuV2lTGz98NWtnv2jZBO4tj4WkHKeN_cW5dg077n2Hg9Mr78ZvfKV4vDUpx6ipjA50bGy7KlLS3RvPoLcUiNLRewRvOlPoWjNf3Ldxeg_ZwhsZx0tTln8ok6uBAHx3FSO65_ejzSQ

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a simple project to reproduce?

    liming.ma@volosoft.com

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