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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    hi

    Try this:

    [ExposeServices(typeof(OpenIddictSupportedLoginModel),typeof(LoginModel))]
    public class LoginCustomModel : OpenIddictSupportedLoginModel
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Priyanka created

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

    Hi, still getting the same error

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Good news.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Priyanka created

    Good news.

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

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

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Can you share a complete project?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Priyanka created

    Can you share a complete project?

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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 September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.