[BUG] Self-Registering not working
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
You need to add the tenant parameter to the request header for the application to identify the correct tenant when creating a user