Open Closed

LoginModel and LoggedOutModel is giving error while Migrating from IdentityServer to OpenIddict #7182


User avatar
0
Priyanka created

I'm trying to migrate IdentityServer to OpenIddict, I have followed these steps -https://docs.abp.io/en/abp/latest/Migration-Guides/OpenIddict-Step-by-Step but in my application I'm using LoginCustomModel which is inheriting LoginModel, but now after migration LoginModel is giving below error I'm using LoginCustomModel to overide OnGetExternalLoginCallbackAsync method. I'm getting same issue in CustomLogout as well where I'm inheriting LoggedOutModel to override OnGetAsync. Please help, how can I migrate LoginCustomModel and CustomLogout.

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: Migrate from IdentityServer to OpenIddict


47 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Try this:

    [ExposeServices(typeof(OpenIddictSupportedLoginModel),typeof(LoginModel))]
    public class LoginCustomModel : OpenIddictSupportedLoginModel
    
  • User Avatar
    0
    Priyanka created

    [ExposeServices(typeof(OpenIddictSupportedLoginModel),typeof(LoginModel))]

    Hi, still getting the same error

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try to rename it to CustomLoginModel?

    [ExposeServices(typeof(OpenIddictSupportedLoginModel),typeof(LoginModel))]
    public class CustomLoginModel : OpenIddictSupportedLoginModel
    
  • User Avatar
    0
    Priyanka created

    hi

    Can you try to rename it to CustomLoginModel?

    [ExposeServices(typeof(OpenIddictSupportedLoginModel),typeof(LoginModel))] 
    public class CustomLoginModel : OpenIddictSupportedLoginModel 
    

    Hi, do you mean this ? if yes, I tried but it is also not helping

  • User Avatar
    0
    Priyanka created

    hi

    Can you try to rename it to CustomLoginModel?

    [ExposeServices(typeof(OpenIddictSupportedLoginModel),typeof(LoginModel))] 
    public class CustomLoginModel : OpenIddictSupportedLoginModel 
    

    I tried this, It is working, thanks for the help

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Good news.

  • User Avatar
    0
    Priyanka created

    Good news.

    I am getting this screen on roles, something is still missed, can you please help with that ?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please check the logs from the browser console and the app's logs.

  • User Avatar
    0
    Priyanka created

    hi

    Please check the logs from the browser console and the app's logs.

    Yes, I checked browser console, seems like UI is still referring Abpidentity

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please share the logs.txt of your backend app.

    You can share it via https://wetransfer.com/

    Thanks.

    liming.ma@volosoft.com

  • User Avatar
    0
    Priyanka created

    hi

    Please share the logs.txt of your backend app.

    You can share it via https://wetransfer.com/

    Thanks.

    liming.ma@volosoft.com

    Hi, can you please access log file https://filetransfer.io/data-package/O7hNVBhc#link. https://wetransfer.com/ is giving some issue.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share the response of https://localhost:44368/Abp/ApplicationConfigurationScript?

    Or you can share a test project that can reproduce the problem.

    Thanks.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks, Can you share a project? In this way, I will find the reason.

    Thanks.

  • User Avatar
    0
    Priyanka created

    hi

    Can you share the response of https://localhost:44368/Abp/ApplicationConfigurationScript?

    Or you can share a test project that can reproduce the problem.

    Thanks.

    I'm also getting this error in console

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Can you share a complete project?

  • User Avatar
    0
    Priyanka created

    Can you share a complete project?

    Can we have a call? I can share the issues over call

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    It will be best if you can share a simple project.

  • User Avatar
    0
    Priyanka created

    hi

    It will be best if you can share a simple project.

    It would be difficult to create sample project with everything, I really appreciate if we can have a quick call.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    ok, Can you join the meeting and share your screen?

    https://us05web.zoom.us/j/83341286808?pwd=Z66iu3ugRnGduaQo7cWnWavbfAW01X.1

  • User Avatar
    0
    Priyanka created

    hi

    ok, Can you join the meeting and share your screen?

    https://us05web.zoom.us/j/83341286808?pwd=Z66iu3ugRnGduaQo7cWnWavbfAW01X.1

    Sorry, I went out for lunch, can we connect now? or whatever time suits you. Thank a lot.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please join the meeting and share your screen https://us05web.zoom.us/j/82519350147?pwd=sT0pZZW6SntVHECd6H7b8encaUwaAG.1

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Run the abp install-libs command to solve this issue.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11