.NET MAUI authentication and authroziation

Game Warden 1 Reputation point
2022-11-27T16:24:12.67+00:00

I'm testing the .NET MAUI framework at the moment, and I'm wondering what is the best practice for authentication on mobile devices(I don't have any previous experience with mobile apps). As far as I'm familiar with web development, for web applications frequent way of authentication is with Cookies or JWT tokens. Do those methods still apply to mobile devices? or I can simply check if the credentials match with the one in the DB and redirect the user to a different view.

Thank you!

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,141 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2022-11-28T05:44:40.19+00:00

    Hello,

    Best practices for this issue are explained in detail in the Enterprise Application Patterns Using .NET MAUI e-book.

    You could refer to Authentication and Authorization to get more details and download the e-book.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    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.