Hi,
Sorry for late.
Is there any error log?
Hi,
Could you share some screenshots and error logs? thanks.
Hi,
Ok, I think this might be browser-related, if you use Microsoft Edge will it work as expected?
Related link https://developer.chrome.com/blog/cors-rfc1918-feedback
And could you change the log level to debug and share the logs again? thanks for your time.
Hi,
Should always call SetBreadcrumbsAsync in the OnAfterRenderAsync method.
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs#L224
I updated all modules and abp suite
It will fixed in 8.0.3 patch version
Hi,
You could consider inheriting WebTelemetryInitializerBase
Hi,
We will update the template. thank you.
Hi works for me:
public class TestAppService : QaAppService
{
private readonly IOptionsMonitor<OpenIddictServerOptions> _oidcOptions;
private readonly IdentityUserManager _userManager;
public TestAppService(IOptionsMonitor<OpenIddictServerOptions> oidcOptions, IdentityUserManager userManager)
{
_oidcOptions = oidcOptions;
_userManager = userManager;
}
public async Task<string> GenerateTokenAsync()
{
var user = await _userManager.FindByNameAsync("admin");
var roles = await _userManager.GetRolesAsync(user);
var claims = new List<Claim>()
{
new Claim("sub", user.Id.ToString()),
new Claim("given_name", user.UserName),
new Claim("email", user.Email),
new Claim("role", string.Join(",", roles)),
new Claim("tenantid", user.TenantId?.ToString() ?? ""),
new Claim("scope", "address email phone roles profile offline_access Qa") //replace Qa with yours
};
var options = _oidcOptions.CurrentValue;
var descriptor = new SecurityTokenDescriptor
{
Audience = "Qa", // replace with yours,
EncryptingCredentials = options.DisableAccessTokenEncryption
? null
: options.EncryptionCredentials.First(),
Expires = null,
Subject = new ClaimsIdentity(claims,TokenValidationParameters.DefaultAuthenticationType),
IssuedAt = DateTime.UtcNow,
Issuer = "https://localhost:44350/", // replace with yours,
SigningCredentials = options.SigningCredentials.First(),
TokenType = OpenIddictConstants.JsonWebTokenTypes.AccessToken,
};
var accessToken = options.JsonWebTokenHandler.CreateToken(descriptor);
return accessToken;
}
}