ASP.Net Core Web API for Xamarin Mobile - Vehicle Tracker

Johnson 81 Reputation points
2021-11-15T14:16:57.04+00:00

Hi, want to develop a WebAPI for a Xamarin App.

The WebAPI is developed in .Net 6 and will be consumed from a Xamarin Mobile Application.

I'm confused about few points that I've never done it before and decided to double check before I start.

Below is the to the Xamarin App UI.

link

The points I'm confused about are :

  1. How to achieve Remember me feature from the ASP.Net Core 6 Web API to work with Xamarin App ?
  2. How to achieve the Forgot password feature from the Web API to work with Xamarin App ?
  3. Regarding the API authentication, should I use Jason Web Token (JWT) or another type of authentication suitable for Xamarin Mobile,
    I mean what type of API authentication should I use for the Web API to work with the Xamarin App ?
  4. How do I keep (JWT) cookies authentication alive and kill it after and pass it through to the mobile developer so they can use it and cancel it from the Xamarin app ?

Any clue please ?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,376 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,772 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 70,776 Reputation points
    2021-11-15T15:47:09.977+00:00

    On mobile, typically you implement remember me with secure storage. Using Keychain on iOS, and keystore on android to store the password.

    If you are using jwt, then instead of a password, you store the jwt refresh token in a secure place.

    The forgot password is typically outside the mobile app. It’s just a request to send an email/sms message to a known account. And a browser link.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.