hi
Can you share a test project?
Thanks
liming.ma@volosoft.com
hi
The claims in the access token are:
{
"iss": "https://localhost:44343/",
"exp": 1729609836,
"iat": 1729606236,
"aud": "VarScanner",
"scope": "openid",
"jti": "de542368-7f4e-41fc-8be1-ff9b62ea57bc",
"sub": "a9a8d44f-c8e3-482f-a870-66e93186d540",
"oi_prst": "VarScanner_App",
"client_id": "VarScanner_App",
"oi_tkn_id": "3a15c6bd-9357-ed6c-3496-ccb090c6096b"
}
Can you try to call await abpOpenIddictClaimsPrincipalManager.HandleAsync(context.Request, claimsPrincipal);?
Make sure the claimsPrincipal is handled by abpOpenIddictClaimsPrincipalManager.
principal vs claimsPrincipal
var principal = await signInManager.CreateUserPrincipalAsync(user);
var claimsPrincipal = await userClaimsPrincipalFactory.CreateAsync(user);
claimsPrincipal.SetScopes(principal.GetScopes());
claimsPrincipal.SetAudiences("VarScanner");
claimsPrincipal.SetResources(await GetResourcesAsync(context, principal.GetScopes()));
//For abp version >= 7.3
await abpOpenIddictClaimsPrincipalManager.HandleAsync(context.Request, claimsPrincipal);
return new Microsoft.AspNetCore.Mvc.SignInResult(OpenIddictServerAspNetCoreDefaults.AuthenticationScheme, claimsPrincipal);```
hi
I see the log: [14:04:28 INF] AuthenticationScheme: Identity.Application signed in.
Can you share an online website? I will test it online.
Thanks
hi
I think you should use public applications for angular.
Confidential applications can hold credentials in a secure way without exposing them to unauthorized parties. They require a trusted backend server to store the secret(s).
Public applications cannot hold credentials securely.
https://auth0.com/docs/get-started/applications/confidential-and-public-applications
hi
As a personal license holder I assumed (maybe wrongly) that I should only be able to create **Application (Single Layer) **projects, but in ABP Studio Application (Layered) is NOT greyed out and I can create and build them fine. So can I use both solution types? If so that is great news. 😀
I think single-layer and layered templates can be for use by person license,
Can you tell me when command below to download source of LeptonX will be fixed?
You can download it by abp get-source Volo.Abp.LeptonXTheme.Pro
Can you tell me when the below will be implemented, I would have asked on that post but it has been locked.
It will be available in abp&volo 9.0 and leptonx 4.0.
Please ask a question in one question. If you have multiple questions, please create multiple questions. We will return your question ticket if it is an abp problem or bug.
Thanks
hi
The bot closed questions that had not been replied to for a long time.
Currently, this can only be implemented by downloading the source code and replacing the nuget package in the project.
hi
You are right. The property is JsonSerializerOptions
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Json.SystemTextJson/Volo/Abp/Json/SystemTextJson/AbpSystemTextJsonSerializerOptions.cs#L7
You can configure it in your host module/project.
eg: API.Host