Closed alihdev closed 7 months ago
I can't say that i understand this problem fully.
On the main branch, it already uses Keycloak and authenticates against the Keycloak server. Hence the CurrentUser is populated based on it. So, the user is already authenticated against the Keycloak.
Sorry, what do I miss?
Hi, We have added a new MVC service. When we click on the login button (in index.cshtml),
<a abp-button="Primary" href="~/Account/Login"><i class="fa fa-sign-in"></i> @L["Login"]</a>
this error occurs.
The account controller:
After we add
[DependsOn(
...
typeof(AbpAccountHttpApiClientModule),
typeof(AbpAspNetCoreAuthenticationOpenIdConnectModule),
typeof(AbpAccountWebOpenIddictModule)
)]
this error occurs.
We need the steps to configure authorization and authentication with Keycloak.
The authorization and authentication sample is the PublicWeb application itself. Please check https://github.com/abpframework/eShopOnAbp/blob/main/apps/public-web/src/EShopOnAbp.PublicWeb/EShopOnAbpPublicWebModule.cs and the keycloak data seeding.
Closing the issue, re-open if you still have problems.
Hello,
We have added a new service, MVC, and everything is working fine and configured. However, we encountered an issue in the login index. How can we change it to Keycloak and save the token for the CurrentUser?
How can we authenticate user using Keycloak ?
Is there any speed solution?