Hi,
No, we don't such plan to implement it.
Please use WebGateway_Swagger and add redirectUri for it. {publicWebGatewayRootUrl}/oauth2-redirect.html
Hi,
I think it may be related to the cache. Can you try to clear all the Redis caches?
Hi,
We added the Periodic Password Changes feature in 7.2
https://blog.abp.io/abp/ABP.IO-Platform-7.2-RC-Has-Been-Published
If the new password matches any of the last 3 passwords, we want to display a warning message indicating that the entered password is not allowed
You can override the ChangePasswordModel to store the recently modified password to cache&database and check it.
await CreateApplicationAsync(
name: swaggerClientId!,
type: OpenIddictConstants.ClientTypes.Public,
consentType: OpenIddictConstants.ConsentTypes.Implicit,
displayName: "Swagger Client",
secret: null,
grantTypes: new List<string>
{
OpenIddictConstants.GrantTypes.AuthorizationCode,
},
scopes: commonScopes.Union(scopes).ToList(),
redirectUris: new List<string> {
$"{webGatewaySwaggerRootUrl}/oauth2-redirect.html", // This line
$"{webGatewaySwaggerRootUrl}/swagger/oauth2-redirect.html", // WebGateway redirect uri
$"{publicWebGatewayRootUrl}/swagger/oauth2-redirect.html", // PublicWebGateway redirect uri
$"{accountServiceRootUrl}/swagger/oauth2-redirect.html", // AccountService redirect uri
$"{identityServiceRootUrl}/swagger/oauth2-redirect.html", // IdentityService redirect uri
$"{administrationServiceRootUrl}/swagger/oauth2-redirect.html", // AdministrationService redirect uri
$"{saasServiceRootUrl}/swagger/oauth2-redirect.html", // SaasService redirect uri
$"{productServiceRootUrl}/swagger/oauth2-redirect.html", // ProductService redirect uri
$"{coreServiceRootUrl}/swagger/oauth2-redirect.html", // CoreService redirect uri
$"{itServiceRootUrl}/swagger/oauth2-redirect.html", // ITService redirect uri
$"{messagingServiceRootUrl}/swagger/oauth2-redirect.html", // MessagingService redirect uri
$"{reportServiceRootUrl}/swagger/oauth2-redirect.html", // ReportService redirect uri
$"{documentServiceRootUrl}/swagger/oauth2-redirect.html", // DocumentService redirect uri
$"{workServiceRootUrl}/swagger/oauth2-redirect.html", // WorkService redirect uri
}
);
Hi,
Unfortunately, I don't know what's happened, can you make a GIF or record a video? Thanks.
if you want i will share my latest code with you what i have currently.
Yes, please also share it.
Hi,
You can try :
app.UseAuthentication(); // Add under `UseAuthentication`
app.Use(async (httpContext, next) =>
{
if (!httpContext.Request.Path.ToString().Contains("account/login"))
{
if (httpContext.User.Identity is not { IsAuthenticated: true })
{
httpContext.Response.Redirect("/account/login");
return;
}
}
await next();
});