Open Closed

Login Page In our Mobile App #1617


User avatar
0
viswajwalith created
  • ABP Framework version: v4.3.X
  • UI type: MVC
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

Hi, We are buiding our own Mobie Application and would like to have the Login page (not in Identity Server) with in App. We are able to add the additional Clients and configuration to generate the access_token by passing the respective parameters.

We are not sure what are the cookies or methods that need to be invoived in order to establish the session and redirect to out Web Layer Home page. If you can share some info that would be great.


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

    Hi,

    I remember that native apps like android and ios apps don't have cookies, make a mobile login page to send a request to the token endpoint is a better way.

  • User Avatar
    0
    viswajwalith created

    Hi,

    I remember that native apps like android and ios apps don't have cookies, make a mobile login page to send a request to the token endpoint is a better way.

    Hi @Liangshiwei, yes we are able to use the generate the token by calling token URL, but our main query is what is way to login into the application by passing generated token and avoid login challange during this process

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Do you mean how to configure IdentityServer in mobile app?

    You can check this: https://stackoverflow.com/questions/57042378/xamarin-forms-identityserver-external-providers-facebook-google

  • User Avatar
    0
    viswajwalith created

    Not Exactly, basically we need to validate AccessToken and create a user claimns and send the user to login page. If needed we may add new controller in our Web/Auth server as well.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    we need to validate AccessToken and create a user claimns and send the user to login page.

    Can you explain it in detail? I don't understand very well.

    The Introspection Endpoint can validate your access_token. https://identityserver4.readthedocs.io/en/3.1.0/endpoints/introspection.html

  • User Avatar
    0
    viswajwalith created

    Hi @liangshiwei ,

    Basically we are trying to implement finger print Login in our Mobile Application. Below are the steps that we are trying to implement the same.

    1. Store the Username & Password (encrypted) in our App Storage
    2. Allowing the user to login with Fingerprint
    3. Mobile App will send a request to generate access token " /connect/token " by passing the clientId, Client Secret, username & Password. we are getting the Generated Access Token
    4. Mobile App send the Access token to our WebSIte
    5. In Our WebApplication we would like to validate the passed token and create user claims to redirect the user to Home Page

    Note: No much functionality/pages in our Mobile Application. Just redirecting to our website only.

    Hope I provided the details needed.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The Introspection Endpoint can be used to validate tokens. https://identityserver4.readthedocs.io/en/latest/endpoints/introspection.html

  • User Avatar
    0
    viswajwalith created

    hi

    The Introspection Endpoint can be used to validate tokens. https://identityserver4.readthedocs.io/en/latest/endpoints/introspection.html

    Thanks, I will try and update you.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11