Open Closed

IdentityServer4 use after dentityServer to OpenIddict migration ? #7574


User avatar
0
Priyanka created

ABP Framework version: v8.1.1

UI Type:React

Database System: EF Core (SQL Server)

Tiered (for MVC) or Auth Server Separated (for Angular): yes

Exception message and full stack trace: NA

Steps to reproduce the issue: IdentityServer to OpenIddict migration

Hi, I have recently migrated identity server to OpenIddict but in stack trace I found IdentityServer4 is being used, sharing the below log:

Microsoft.AspNetCore.Http.DefaultHttpResponse.Redirect()

Microsoft.AspNetCore.Http.HttpResponse.Redirect() Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationEvents.<>c.<.ctor>b__45_8() Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationEvents.RedirectToReturnUrl() Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler.<ApplyHeaders>d__28.MoveNext() System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start() System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start() Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler.ApplyHeaders() Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler.<HandleSignInAsync>d__26.MoveNext() System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start() System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start() Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler.HandleSignInAsync() Microsoft.AspNetCore.Authentication.SignInAuthenticationHandler1[TOptions].SignInAsync() Microsoft.AspNetCore.Authentication.AuthenticationService.<SignInAsync>d__17.MoveNext() System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start() System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start() Microsoft.AspNetCore.Authentication.AuthenticationService.SignInAsync() **IdentityServer4**.Hosting.IdentityServerAuthenticationService.<SignInAsync>d__8.MoveNext() System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start() System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start() **IdentityServer4**.Hosting.IdentityServerAuthenticationService.SignInAsync() Microsoft.AspNetCore.Identity.SignInManager1.<SignInWithClaimsAsync>d__33[TUser].MoveNext() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1[TResult,TStateMachine].ExecutionContextCallback() System.Threading.ExecutionContext.RunInternal() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1[TResult,TStateMachine].MoveNext() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1[TResult,TStateMachine].MoveNext() System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction() System.Threading.Tasks.Task.RunContinuations() System.Threading.Tasks.Task.FinishContinuations() System.Threading.Tasks.Task1[TResult].TrySetResult() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[TResult].SetExistingTaskResult() Microsoft.AspNetCore.Identity.SignInManager1.<CreateUserPrincipalAsync>d__26[TUser].MoveNext() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1[TResult,TStateMachine].ExecutionContextCallback() System.Threading.ExecutionContext.RunInternal() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1[TResult,TStateMachine].MoveNext() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1[TResult,TStateMachine].MoveNext() System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction() System.Threading.Tasks.Task.RunContinuations() System.Threading.Tasks.Task.FinishContinuations() System.Threading.Tasks.Task1[TResult].TrySetResult() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[TResult].SetExistingTaskResult() Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.<InterceptAsync>d__31[TInterceptor,TResult].MoveNext() System.Threading.ExecutionContext.RunInternal() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1[TResult,TStateMachine].MoveNext() System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction() System.Threading.Tasks.Task.RunContinuations() System.Threading.Tasks.Task.FinishContinuations() System.Threading.Tasks.Task1[TResult].TrySetResult() Volo.Abp.Uow.UnitOfWorkInterceptor.<InterceptAsync>d__2.MoveNext() System.Threading.ExecutionContext.RunInternal() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1[TResult,TStateMachine].MoveNext() System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction() System.Threading.Tasks.Task.RunContinuations() System.Threading.Tasks.Task.FinishContinuations() System.Threading.Tasks.Task1[TResult].TrySetResult() Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.<ProceedAsync>d__7[TResult].MoveNext() System.Threading.ExecutionContext.RunInternal() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1[TResult,TStateMachine].MoveNext() System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction() System.Threading.Tasks.Task.RunContinuations() System.Threading.Tasks.Task.FinishContinuations() System.Threading.Tasks.Task1[TResult].TrySetResult() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[TResult].SetExistingTaskResult() Castle.DynamicProxy.AsyncInterceptorBase.<ProceedAsynchronous>d__141[TResult].MoveNext() System.Threading.ExecutionContext.RunInternal() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1[TResult,TStateMachine].MoveNext() System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction() System.Threading.Tasks.Task.RunContinuations() System.Threading.Tasks.Task.FinishContinuations() System.Threading.Tasks.Task1[TResult].TrySetResult() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[TResult].SetExistingTaskResult() eFC.IdentityServer.eFCUserClaimFactory.<CreateAsync>d__4.MoveNext(eFCUserClaimFactory.cs:73) System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1[TResult,TStateMachine].ExecutionContextCallback() System.Threading.ExecutionContext.RunInternal() System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox`1[TResult,TStateMachine].MoveNext()

Can you please help me to understand why Identityserver4 is still there, I have removed all Identityserver refrence from my solution.

Thanks


7 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can try search Identityserver keyword globally in your solution

  • User Avatar
    0
    Priyanka created

    Hi,

    You can try search Identityserver keyword globally in your solution

    Hi, I searched Identityserver but it is not there in the code, still it is there in logs.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    somewhere must still reference identityserver4

    you can check the deps.json, for example

  • User Avatar
    0
    Priyanka created

    somewhere must still reference identityserver4

    you can check the deps.json, for example

    It is there in connected services which are external service (e.g.) but in log seems like in Sign in It is being used.

    I just want to confirm it there any possibility that abp is using it internally in login?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    yes, you must remove it

  • User Avatar
    0
    Priyanka created

    yes, you must remove it

    but I'm not calling external service every time, also why in log it is coming on login method?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    sorry, i have no idea because i don't know about your project details

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09