Hi,
Can you explain in detail? thanks.
Hi,
This is a problem.
Try to add the following code to the .identityserver
project:
public class FormTenantResolveContributor: HttpTenantResolveContributorBase
{
public const string ContributorName = "Form";
public override string Name => "Form";
protected override string GetTenantIdOrNameFromHttpContextOrNull(
ITenantResolveContext context,
HttpContext httpContext) => httpContext.Request?.Form[context.GetAbpAspNetCoreMultiTenancyOptions().TenantKey];
}
Configure<AbpTenantResolveOptions>(options =>
{
options.TenantResolvers.Add(new FormTenantResolveContributor());
});
Try to add the following code to the .Web
project:
.AddOpenIdConnect("oidc", options =>
{
//.......
options.Events = new OpenIdConnectEvents()
{
OnAuthorizationCodeReceived = receivedContext =>
{
if (receivedContext.Request.Cookies.ContainsKey("__tenant"))
{
receivedContext.TokenEndpointRequest.SetParameter("__tenant",
receivedContext.Request.Cookies["__tenant"]);
}
return Task.CompletedTask;
;
}
};
}
I will check it out.
Do you initialize seed data? try run the .DbMigrator
project.
Yes, you don't need to change back-end code.
Hi,
ABP vnext is redesigned and cannot be used in aspnetzero project, but Volo.Abp.TextTemplating
is open source : https://github.com/abpframework/abp/tree/dev/framework/src/Volo.Abp.TextTemplating. You can try to port to aspnetzero.
In addition you can open an feature request on aspnetboilerplate : https://github.com/aspnetboilerplate/aspnetboilerplate/issues/new
Hi,
Please see the document: https://identityserver4.readthedocs.io/en/latest/topics/refresh_tokens.html
Hi,
You can set the expiration time and use the refresh token to get a new access token
Hi,
There have an example : https://github.com/abpframework/abp-samples/tree/master/RabbitMqEventBus, maybe can help you.