hi
Duplicate https://support.abp.io/QA/Questions/7496/An-exception-was-thrown-while-activating-VoloAbpPermissionManagementEntityFrameworkCorePermissionManagementDbContext---MicrosoftEntityFrameworkCoreDbContextOptions1VoloAbpPermissionManagementEntityFrameworkCorePermissionManagementDbContext
Thanks. I have refunded your ticket. 👍
hi
Is it possible to hide this Sessions tab without overriding the Angular component? It would be the best if I can just override the GetList method and remove this tab.
I'm not sure about angular. You can try to set IsVisibleToClients of IdentityProSettingNames.Session.PreventConcurrentLogin to fasle
To be a reference for the people who are looking for a similar functionality, the part "IdentityProPreventConcurrentLoginBehaviour.Disabled.ToString()" does not disable the concurrent login, it disables the functionality to prevent concurrent login. You have to give either "LogoutFromAllDevices" or "LogoutFromSameTypeDevices" options to prevent. I just wanted to clarify as the term can be confusing.
Thanks 👍
hi
System.ArgumentException: Cannot write DateTime with Kind=Local to PostgreSQL type 'timestamp with time zone', only UTC is supported. Note that it's not possible to mix DateTimes with different Kinds in an array, range, or multirange. (Parameter 'value')
Try to add this line to your ef core layer.
// https://www.npgsql.org/efcore/release-notes/6.0.html#opting-out-of-the-new-timestamp-mapping-logic
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
hi
I will ask our angular team. Please wait a moment.
Thanks.
hi
I will investigate this. Thank you
The design of Openiddict and identity server are different, so this may not be possible.
Yes, there is no UI to configure the claims. You have to change it by code.
You can add an IAbpOpenIddictClaimsPrincipalHandler to see if your oauth2 request works.
If you get an error, please share the logs. I will check it.
Thanks.
hi
There are only Scope and Application that you need to pay attention to in OpenIddict.
https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/OpenIddict/OpenIddictDataSeedContributor.cs#L55-L56
For claims management, you can check https://docs.abp.io/en/abp/latest/Modules/OpenIddict#updating-claims-in-access_token-and-id_token
Add your claim types to id/access token from AbpOpenIddictClaimsPrincipalHandlerContext's Principal.
What are grantTypes of your client?
hi
Our angular team will reply asap.
sorry for that.