Starts in:
2 DAYS
10 HRS
22 MIN
23 SEC
Starts in:
2 D
10 H
22 M
23 S
Open Closed

Builtin Scopes (address,email,phone,etc) are lost when an openiddic application definition is saved in Blazor app ui. #3949


User avatar
0
mgurer created
  • ABP Framework version: v6.0.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

1 - Create new project: abp new Demo -t microservice-pro -u blazor 2 - go to (solution_root)/etc/docker 3 - run .\up1.sh 4 - go to (solution_root)/shared/Demo.DbMigrator 5- run: dotnet run --environment "Development" 6- open sql management studio, configure connection; Server=localhost,1434, User Id=sa, password=myPassw0rd 7- open Demo_Identity/OpenIddictApplications table 8- check for the value in Persmissions column of clientId=Demo_Blazor row. Here is the initial value; ["ept:logout","gt:authorization_code","rst:code","ept:authorization","ept:token","ept:revocation","ept:introspection","scp:address","scp:email","scp:phone","scp:profile","scp:roles","scp:AccountService","scp:IdentityService","scp:AdministrationService","scp:SaasService","scp:ProductService"] 9- go to solution root folder 10- run solution: .\run-tye.ps1 (note: first run sometimes fails, so I kill the process and run it again when working on a brand-new project) 11- open blazor site: https://localhost:44307/ 12- login: admin 1q2w3E* 13- go to /administration/openid/applications tab 14- edit Demo_Blazor application 15- click save button without changing any data. 16- follow the steps 6,7,8 and check for the persmissions data on the table. 17- built-in scopes are gone; ["ept:logout","gt:authorization_code","rst:code","ept:authorization","ept:token","ept:revocation","ept:introspection","scp:ProductService","scp:SaasService","scp:AdministrationService","scp:IdentityService","scp:AccountService"] 18- scp:address","scp:email","scp:phone","scp:profile","scp:roles are missing after update. 19- if you logout from blazor app, you cant login back because of the missing data. here is the error message you get when you try to login back; error:invalid_request error_description:This client application is not allowed to use the specified scope. error_uri:https://documentation.openiddict.com/errors/ID2051

Can you help me for this issue?

Thanks.


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

    hi

    The 6.0.1 will solve this.

  • User Avatar
    0
    mgurer created

    Is there any estimation for the release date?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    It's released. Can you try to change the version of the packages to 6.0.1?

  • User Avatar
    0
    mgurer created

    Thanks

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