hi
now I don't know how to make blazor app login with this grant.
The EmployeeNumberGrant is generally used for Angular.
The Blazor Server or WASM will use Cookie and OpenID Connect for authentication. It will not use your EmployeeNumberGrant
Thanks.
hi
Can you share the 401 logs of AuthServer project?
Thanks.
hi
Are you using HTTP as the authserve scheme?
Can you try to set requireHttps to false in oAuthConfig
const oAuthConfig = {
issuer: 'http://abp.io/',
redirectUri: baseUrl,
clientId: 'Bluestar_App',
responseType: 'code',
scope: 'offline_access Bluestar',
requireHttps: false,
};
Thanks.
hi
Is it possible to determine whether the user logged in with a local account or via an external login (e.g., BankID)? I'd like to make certain decisions based on the login method used.
You can use a custom claim to check it. eg nationalidentitynumber then try to get this claim from CurrentUser.
Is it possible to include a custom claim in both the access_token and the id_token?
You can check the BankID platform to see if it supports adding custom claims for a user.
Thanks.
hi
We will confrim this change with Blazorise team
Thanks.
hi
You can check this article.
https://abp.io/community/articles/how-to-add-a-custom-grant-type-in-openiddict.-6v0df94z
Thanks.
hi
If you have gotten and set the ProductToken, you can downgrade the Blazor to 1.8.1. I will confirm this with the Blazorise team
Thanks.
services.AddBlazorise( options =>
{
options.ProductToken = "<your-product-token>";
})
https://abp.io/support/questions/5037/How-do-we-get-support-with-Blazorise#answer-3a0b3114-427d-f26e-4cc5-88ff791f3ff3
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/xxx/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 XXXCore.HttpApi.Host project. And re-run the app.
这个RequestClientCredentialsTokenAsync方法来自 IdentityModel 类库
https://docs.duendesoftware.com/identityserver/tokens/requesting/#net-client-library
如果第三方是net 应用程序可以直接引用并使用它获取token并消费API.