dotnet-starter-kit icon indicating copy to clipboard operation
dotnet-starter-kit copied to clipboard

[BUG] Self-Registering not working

Open NoFrosty opened this issue 2 years ago • 1 comments

Describe the bug When trying to self-register from https://localhost:7100/register, it's not working.

To Reproduce Steps to reproduce the behavior:

  • Run Host
  • Open https://localhost:7100/register
  • Fill the form

From what I've saw, a lot changed in the API and the self-register API endpoint has been deleted. And the existing one require to be login with register authorization.

FSH.Framework.Core.Exceptions.UnauthorizedException: 'authentication failed'

If I bypass the RequirePermission and put AllowAnonymous:

FSH.Framework.Infrastructure.Identity.Users.Services.UserService.RegisterAsync(FSH.Framework.Core.Identity.Users.Features.RegisterUser.RegisterUserCommand, string, System.Threading.CancellationToken) in UserService.cs

NoFrosty avatar Aug 12 '24 05:08 NoFrosty

You need to add the tenant parameter to the request header for the application to identify the correct tenant when creating a user image

wibu009 avatar Aug 14 '24 10:08 wibu009