- 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:
- Is it possible to implement a login flow within the mobile app itself, without redirecting users to the backend login page?
- If so, could you provide guidance, examples, or documentation on how to achieve this using the ABP framework?
- 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)
-
0
Hi,
You can use Resource Owner Password Flow https://abp.io/docs/latest/framework/ui/angular/account-module#resource-owner-password-flow
-
0
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
-
0
Hi,
This way will not redirect to the backend login page, I think it can meet your needs