hi
ChangeEmailTokenProvider
will use DataProtectorTokenProvider
to generate and verify tokens by default,
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.identity.tokenoptions.changeemailtokenprovider?view=aspnetcore-6.0
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.identity.dataprotectortokenprovider-1?view=aspnetcore-6.0
You can customize a token provicer to generate short digital codes. For example PhoneNumberTokenProvider
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.identity.phonenumbertokenprovider-1?view=aspnetcore-6.0
https://github.com/aspnet/AspNetIdentity/blob/main/src/Microsoft.AspNet.Identity.Core/PhoneNumberTokenProvider.cs#L24
Of course, you also need to change the built-in email sending and verification UI and business code.
hi Neozzz
Failed to match Route configuration for upstream path: /api/app/product-type, verb: POST.
Does your product service has such API route? You can check its swagger.
hi
An internal error occurred during your request!
Can you check your logs file to see the details errors?
hi
We will release 5.0 soon. It using the NET 6. https://github.com/abpframework/abp/releases/tag/5.0.0-beta.3
I want to check the client after a user registers so I can set his role
You can also check the URL of the current request to determine the caller, or add a special header to request.
hi
You can check the request and identity in the middleware.
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/write?view=aspnetcore-6.0
hi
You need to run the ABPApplication.IdentityServer
, ABPApplication.HttpAPI.Host
and ABPApplication.Web
.
is there a way to assign it based on what client is calling the API?
Using roles is the easiest way, and they can be assign it if they use different IdentityServer Client.
In short, we can implement these after user authentication.