ABP Framework version: v4.3.2 UI type: Angular DB provider: EF Core (MySql) Tiered (MVC) or Identity Server Separated (Angular): yes
An exception occurred while iterating over the results of a query for context type 'Volo.Abp.IdentityServer.EntityFrameworkCore.IdentityServerDbContext'. [IdentityServer] MySql.Data.MySqlClient.MySqlException : The table '(temporary)' is full When access link: https://localhost:44332/connect/authorize?response_type=code&client_id=newPMS_App&state=TkpJcjZzcXoyN1JsWHlfM3ZIQnR-M1lBdE5CVFlRRkp3Y2Nwa2FlUm5OflFm&redirect_uri=http%3A%2F%2Flocalhost%3A4200&scope=openid%20offline_access%20newPMS&code_challenge=RgJ2wR-nIArtgvF98IBaU8YWp8HaJUoLjXdSjoOD0t0&code_challenge_method=S256&nonce=TkpJcjZzcXoyN1JsWHlfM3ZIQnR-M1lBdE5CVFlRRkp3Y2Nwa2FlUm5OflFm
Thanks team! Solved
Hi @maliming please give me the link! Thank!
{
JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear();
JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Add("sub", ClaimTypes.NameIdentifier);
context.Services.AddAuthentication()
.AddIdentityServerAuthentication(options =>
{
options.Authority = configuration["AuthServer:Authority"];
options.RequireHttpsMetadata = false;
options.ApiName = "newPMS";
options.JwtBackChannelHandler = new HttpClientHandler()
{
ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
};
})
.AddOpenIdConnect("KeyCloakOpenId", "Ord key cloak", options =>
{
// options.SignInScheme = IdentityConstants.ExternalScheme;
options.Authority = configuration["Authentication:KeyCloak:Authority"];
options.ClientId = configuration["Authentication:KeyCloak:ClientId"];
options.ResponseType = OpenIdConnectResponseType.CodeIdToken;
options.CallbackPath = "/signin-oidc";
options.SignedOutRedirectUri = configuration["App:SelfUrl"];
options.ClientSecret = configuration["Authentication:KeyCloak:ClientSecret"];
options.RequireHttpsMetadata = false;
options.GetClaimsFromUserInfoEndpoint = true;
options.SaveTokens = true;
options.Scope.Add("offline_access email");
});
}
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(LoggedOutModel))]
public class CustomLogoutModel : LoggedOutModel
{
private readonly IConfiguration _configuration;
public CustomLogoutModel(IConfiguration configuration)
{
_configuration = configuration;
}
public override async Task<IActionResult> OnGetAsync()
{
await HttpContext.SignOutAsync("KeyCloakOpenId", new AuthenticationProperties()
{
RedirectUri = "/"
});
await base.OnGetAsync();
return Redirect("/");
}
}
Thank, How to replace the UnitOfWorkMongoDbContextProvider class?
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.