Open Closed

Assistance Needed: Implementing Login Without Redirecting to Backend Login Page #8487


User avatar
0
viktor created
  • ABP Framework version: v9.0.0 (Business plan)
  • UI Type: Angular + APP (Ionic + Angular build for Android and iOS)
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

Dear ABP Support Team,

We are currently developing a mobile application using the Ionic Framework for both Android and iOS platforms. The app's builds are being managed through Ionic Appflow. For the backend, we are using the ABP framework.

While testing our implementation, we encountered an issue with the login functionality:

When users attempt to log in through the app, they are redirected to the ABP backend login page. After successfully logging in on the backend page, the app attempts to redirect back to the frontend. However, this redirection fails as it tries to navigate to localhost, which is not valid in the mobile app context. Given this scenario, we have the following questions:

  1. Is it possible to implement a login flow within the mobile app itself, without redirecting users to the backend login page?
  2. If so, could you provide guidance, examples, or documentation on how to achieve this using the ABP framework?
  3. Are there specific configurations or adjustments we need to make (e.g., for OpenID Connect, JWT, or OAuth2) to support a seamless login process within the app?

We appreciate your help in resolving this issue and look forward to your advice. Please let us know if additional information or context is needed.

Regards


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

    Hi,

    You can use Resource Owner Password Flow https://abp.io/docs/latest/framework/ui/angular/account-module#resource-owner-password-flow

  • User Avatar
    0
    viktor created

    Hi, liangshiwei

    Thank you for your response. I would like to clarify:

    Is the approach you suggested the only option available for implementing authentication/authorization in mobile apps (Android/iOS)? Are there any ABP-recommended best practices or alternative approaches for integrating an ABP backend with mobile apps in the authentication/authorization process?

    Your guidance on this would be greatly appreciated.

    Regards

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    This way will not redirect to the backend login page, I think it can meet your needs

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