-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getaccesstoken err when granttype is client_credentials #19994
Comments
hi Can you share the code to reproduce? There should be no |
Thanks for reply. I just rewrote this method public class AppTokenController : TokenController
} |
Make sure there is no |
I did not find userId in the rewrite method debugging |
Please share the full error stack or a simple test project. |
thinks. |
There is no user concept in the |
claim type sub mapTo userId ? |
This seems to be a problem. I will find a way to fix this. |
will this issue be resolved in the future? |
See #20045 |
thank you |
version 7.4.4 upgrade 8.1.3
RequestPath = connect/token
{
"Depth": 0,
"ClassName": "Volo.Abp.Domain.Entities.EntityNotFoundException",
"Message": "There is no such an entity. Entity type: Volo.Abp.Identity.IdentityUser, id: de8acc86-0046-4ea5-a3d6-3a11c865bfc1",
"Source": "Volo.Abp.Identity.Domain",
"StackTraceString": " at Volo.Abp.Identity.IdentityUserManager.GetByIdAsync(Guid id)\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue
1.ProceedAsync()\n at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter
1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed)\n at Volo.Abp.Identity.IdentityDynamicClaimsPrincipalContributorCache.<>c__DisplayClass23_0.<<GetAsync>b__0>d.MoveNext()\n--- End of stack trace from previous location ---\n at Volo.Abp.Caching.DistributedCache
2.GetOrAddAsync(TCacheKey key, Func1 factory, Func
1 optionsFactory, Nullable1 hideErrors, Boolean considerUow, CancellationToken token)\n at Volo.Abp.Identity.IdentityDynamicClaimsPrincipalContributorCache.GetAsync(Guid userId, Nullable
1 tenantId)\n at Volo.Abp.Identity.IdentityDynamicClaimsPrincipalContributor.ContributeAsync(AbpClaimsPrincipalContributorContext context)","RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"HResult": -2146233088,
"HelpURL": null
}
The text was updated successfully, but these errors were encountered: