hi
You can get username and client_id from the request.
malimings@gmail.com
hi
You can try to log out and log in again. also install the latest CLI and Suite
abp logout
abp login
I have not received it yet.
liming.ma@volosoft.com
hi
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(LoginModel))]
public class CustomLoginModel : LoginModel
{
public CustomLoginModel(IAuthenticationSchemeProvider schemeProvider, IOptions accountOptions, IAbpRecaptchaValidatorFactory recaptchaValidatorFactory, IAccountExternalProviderAppService accountExternalProviderAppService, ICurrentPrincipalAccessor currentPrincipalAccessor, IOptions identityOptions, IOptionsSnapshot reCaptchaOptions) : base(schemeProvider, accountOptions, recaptchaValidatorFactory, accountExternalProviderAppService, currentPrincipalAccessor, identityOptions, reCaptchaOptions)
{
}
public override async Task OnPostAsync(string action)
{
var request = await OpenIddictRequestHelper.GetFromReturnUrlAsync(ReturnUrl);
if (request?.ClientId != null)
{
// check the request here
}
return await base.OnPostAsync(action);
}
}```
hi
Can you test the code in an opensource template project and share it again?
abp new BookStore -t module
I can't reproduce with your project.
SG.RISE.DbMigrator % dotnet run
SG.RISE.DbMigrator.csproj : warning NU1608: Detected package version outside of dependency constraint: Castle.Windsor 5.1.2 requires Castle.Core (>= 4.4.1 && < 5.0.0) but version Castle.Core 5.1.1 was resolved.
SG.RISE.DbMigrator.csproj : warning NU1608: Detected package version outside of dependency constraint: Castle.Windsor 5.1.2 requires Castle.Core (>= 4.4.1 && < 5.0.0) but version Castle.Core 5.1.1 was resolved.
[09:38:41 INF] Started database migrations...
[09:38:41 INF] Migrating schema for host database...
[09:38:43 INF] Executing host database seed...
[09:38:45 INF] Successfully completed host database migrations.
[09:38:45 INF] Successfully completed all database migrations.
[09:38:45 INF] You can safely end this process...
hi
it switching user context only after reloads the page
I mean you can reload the page by code.
https://support.abp.io/QA/Questions/5107#answer-3a0b692f-e52a-cde1-f2b7-cf0f255391e1