hi
2.) The login page comes from the Account module. How can I customize it? I would appreciate a link explaining this section. Because I created Pages/Account/Login.cshtml in the Host layer and added the relevant code to the OnGetAsync method. Since it was redirecting incorrectly, I deleted it all and reverted it.
I pushed new code.
see https://github.com/demirburak/KizilayTechDemo.SohoCore/pull/1/commits/9d38ecac1b024f2f34c3dc1f39c1090d3190e265
hi
1.) The sign-up button is inactive. Actually, is there a parameter for automatic registration, as if this button didn't exist? In other words, if identity verification is successful, can it automatically register locally?
Please try to run abp install-libs
command in your SohoCore.HttpApi.Host
project. And re-run the app.
这个RequestClientCredentialsTokenAsync
方法来自 IdentityModel 类库
https://docs.duendesoftware.com/identityserver/tokens/requesting/#net-client-library
如果第三方是net 应用程序可以直接引用并使用它获取token并消费API.
是的, RequestClientCredentialsTokenAsync
也是POST请求
请参考 https://github.com/abpframework/abp/blob/dev/modules/openiddict/app/OpenIddict.Demo.Client.Console/Program.cs#L165-L195
hi
Try to inject IDistributedCache<PermissionGrantCacheItem>
service.
Then remove the cache keys, the key is calculate by PermissionGrantCacheItem.CalculateCacheKey(name, providerName, providerKey);
Name is permission name
providerName is U
or R
providerKey is UserId or RoleName
Thanks.
The login flow video: https://we.tl/t-cuDV5W00BK
hi
I did some changes to your SohoAuth and SohoCore
https://github.com/demirburak/KizilayTechDemo.SohoAuth/pull/1 https://github.com/demirburak/KizilayTechDemo.SohoCore/pull/1
SohoAuth
is like a Google website.
SohoCore.HttpApi.Host
is your AuthServer, and it supports SohoAuth/Google login
SohoCore.Web
login flow is:
SohoCore.Web
login => redirect to AuthServer(SohoCore.HttpApi.Host
) login page.AuthServer(SohoCore.HttpApi.Host
) login page.SohoAuth/Google
websiteSohoAuth/Google
websiteAuthServer(SohoCore.HttpApi.Host)
and it will create a new user, all user info coming from SohoAuth/Google
websiteAuthServer(SohoCore.HttpApi.Host)
SohoCore.Web
The user info in SohoCore.Web
and AuthServer(SohoCore.HttpApi.Host)
is the same user. And it exists in SohoCore
database.
At the same time, the same user also exists in your SohoAuth/Google database.
If you want to auto-login by SohoAuth/Google
account in the AuthServer(SohoCore.HttpApi.Host)
login page. You can override the Login page OnGetAsync
method and call:
public override async Task<IActionResult> OnGetAsync()
{
return Challenge("oidc");
}
Thanks.
hi
I have downloaded ServerA and B solutions.
Can you share the steps to reproduce the exception?
Thanks.
hi
Thanks. Has your problem been solved?