hi
You can try to remove the client secret for the swagger application.
Swagger is a public application. https://auth0.com/docs/get-started/applications/confidential-and-public-applications
https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.DbMigrator/appsettings.json#L38-L41
https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/OpenIddict/OpenIddictDataSeedContributor.cs#L188-L198
hi
ICurrentUser claims getting from:
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Security/Volo/Abp/Users/CurrentUser.cs#L16
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/Security/Claims/HttpContextCurrentPrincipalAccessor.cs#L18
hi
Is your SendToUsersAsync code's website and localhost:44320 the same website?
Can you share some code to reproduce in a new template project?
hi
The redirect URL in the request does not match the value in the database.
https://localhost:44318/swagger/oauth2-redirect.html https://localhost:44343/swagger/oauth2-redirect.html
Client validation failed because 'https://localhost:44343/swagger/oauth2-redirect.html' was not a valid redirect_uri for Files_App.
hi
You can try to get access token from HttpContext in 7.2.3
var httpContext = HttpContextAccessor?.HttpContext;
if (httpContext == null)
{
return null;
}
return await httpContext.GetTokenAsync("access_token");
hi
https://support.abp.io/QA/Questions/3448/How-to-Deploy-Net-60-web-api-Application-on-windows-server-IIS#answer-5f70c8df-651b-08ba-ec76-3a053289a6f4
https://support.abp.io/QA/Questions/3327/Health-Check-Problem-on-IIS-SystemUriFormatException-Invalid-URI-The-hostname-could-not-be-parsed#answer-51baf847-087a-2aa1-1d76-3a04d9420894
hi
The abp app logs.
See .WriteTo.Async(c => c.File("Logs/logs.txt"))
namespace MyCompanyName.MyProjectName;
public class Program
{
public async static Task<int> Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
#if DEBUG
.MinimumLevel.Debug()
#else
.MinimumLevel.Information()
#endif
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.Console())
.CreateLogger();
hi
I think the changes are too big, so there maybe some breaking. You can try it step by step.
abp will use HttpContext.User(ClaimsPrincipal) to populate the ICurrentUser