Open Closed

How to skip login page and redirect to social login? #8858


User avatar
0
dfzamora created
  • ABP Framework version: v8.2.3
  • UI Type: Angular
  • Database System: EF Core
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

I am trying to implement a specific login process, where the user is going to be able to login either user and password, Microsoft or Google.

I need to keep the login form in the login frontend side since I customized a lot of that component, so I can not use authentication response type code For social login what is happening is that I can only redirect to abp login page in the backend, there the user can click the social account it prefers, but this is not my goal

My specific requirement is to keep frontend login, in the login I will have two social buttons, when one of those is click the app should redirect to the login specified,

Is there a way to hide abp login and somehow in the url specify which social provider needs to be redirected to? If so, could you provide me the guidance to achieve it please


3 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hi,

    Unfortunately, there is no ready solution for this on the ABP side. However, you can write a custom middleware for this. You can redirect every request to /account/login to the provider you want according to its parameters.

  • User Avatar
    0
    dfzamora created

    Hello,

    I have this solution, I created my own controller, which I call from the frontend and handles the redirect, I share my solution in case someone else is looking for something similar

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Super, thank you for your valuable contribution.


    Closing the issue. Feel free to re-open or create a new issue if you have further questions.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00