Activities of "maliming"

hi

This is related to OAuth2

https://oauth.net/2/grant-types/password/

hi

You can get access_token from AuthServer/IdentityServer and then carry the token to call the API.

hi

I can check it remotely. My time zone is utc+8.

If you Call getAuthor API of TestApp.HttpApi.Host and get UnAuthorised

You can try to use context.HttpContext.User = newPrincipal; to replace the _currentPrincipalAccessor.Change(newPrincipal);

After getting the token Call getAuthor API with that token ( tenant you can hardcoded) Return author data For me this is giving UnAuthorised exception because of user not loggin in

Call getAuthor API of TestApp.HttpApi.Host or TestApp.AuthServer?

hi

_currentPrincipalAccessor.Change(newPrincipal); will not work. It only works on using scope.

eg:

using(_currentPrincipalAccessor.Change(newPrincipal))
{
    //working...
}

hi

You have to create an external sso

I don't have any external sso. can share a test one?

I have to reproduce your exception on my locally.

hi

If you are using OpenIddict:

https://docs.abp.io/en/abp/latest/Modules/OpenIddict#setting-tokens-lifetime

Identity Server :

https://support.abp.io/QA/Questions/373/Prolong-token-lifetime-per-each-request

Answer

hi

I saw these two errors.

The first seems to be a network problem. The second seems to be a DevExtreme problem. You can check your code.

Anyways I don't think the problem is related to abp.

An error occurred using the connection to database 'Pbys' on server '10.1.8.53'.


 'Menu' is not a member of type 'Pbys.EmployeeDecrees.EmployeeDecreeRecordDocumentWithNavigationProperties' (Parameter 'propertyOrFieldName')
System.ArgumentException: 'Menu' is not a member of type 'Pbys.EmployeeDecrees.EmployeeDecreeRecordDocumentWithNavigationProperties' (Parameter 'propertyOrFieldName')
   at System.Linq.Expressions.Expression.PropertyOrField(Expression expression, String propertyOrFieldName)
   at DevExtreme.AspNet.Data.ExpressionCompiler.CompileAccessorExpression(Expression target, String clientExpr, Action`1 customizeProgression, Boolean liftToNullable)
   at DevExtreme.AspNet.Data.SortExpressionCompiler.Compile(Expression target, IEnumerable`1 clientExprList)
   at DevExtreme.AspNet.Data.DataSourceExpressionBuilder.AddSort()
   at DevExtreme.AspNet.Data.DataSourceExpressionBuilder.BuildLoadExpr(Boolean paginate, IList filterOverride, IReadOnlyList`1 selectOverride)
   at DevExtreme.AspNet.Data.DataSourceLoaderImpl`1.LoadAsync()
   at Pbys.EmployeeDecrees.EmployeeDecreeRecordDocumentsAppService.GetDxListByCurrentUserAsync(DataSourceLoadOptionsBase input) in C:\Pbys\aspnet-core\src\Pbys.Application\EmployeeDecrees\EmployeeDecreeRecordDocumentAppService.cs:line 466

hi

You need to override the account layout in the Http.ApiHost project

Showing 8011 to 8020 of 12923 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on November 02, 2026, 06:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.