Open Closed

I'm facing an 'Invalid username or password!' error in my ABP React Native application. #5871


User avatar
0
sudhakiran.ziraff@gmail.com created
  • ABP Framework version: v7.3.2
  • UI Type: React Native
  • Database System: PostgreSQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace: I'm facing an 'Invalid username or password!' error in my React Native application. I can successfully log in using admin credentials (admin / 1q2w3E*), but when trying to log in with a user created under a tenant, got 'Invalid username or password!' error.

URL: https://localhost:44322/connect/token FormData: grant_type: password scope: offline_access openid profile email phone AccountService IdentityService AdministrationService SaasService ProductService username: selfuser password: Welcome@123 client_id: Angular

  • Steps to reproduce the issue:

    • Create one basic react native application with command of abp new MyCompanyName.MyProjectName -csf -u <angular or mvc> -m react-native
    • Run the application with required configuration (issuer, api, client).
    • Login with admin credentials - authenticates success. (admin / 1q2w3E* )
    • logout with admin user.
    • create one tenant using angular application with admin credentials.
    • register one user under the tenant.
    • now to login with new user in mobile app getting issue
  • How can i Access token with tenant user credentials. with react native application.


2 Answer(s)
  • User Avatar
    0
    sudhakiran.ziraff@gmail.com created

    Hello any update on this matter, Could you please help us.

  • User Avatar
    0
    masum.ulu created
    Support Team Angular Developer

    Hello sudhakiran,

    With the 7.4 version we're using authorization code flow which means auth process will be continue on the browser (server side), If you still want to use client side (password code flow) I'll try to re-produce and I'll reply the solution.

    You can check the detail on Our YouTube live session

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