Authentication and Authorization in Blazor Hybrid (MAUI Blazor)
This tutorial will cover the following topics:
• Authentication and Authorization using JWT tokens
• Automatic JWT token generation
• Managing authentication state
• Retrieving login and logout times
• Interacting with a Microsoft SQL Server Database using ASP.NET Core Web API
• New user registration with photo upload using ASP.NET Core Web API
• Browse and capturing photos
• Retrieving login user information using ASP.NET Core Web API
Software Requirements:
• Visual Studio 2022 (latest version)
• Microsoft SQL Server 2016 or higher
Required NuGet Packages:
• Microsoft.AspNetCore.Components.Authorization
• Newtonsoft.Json
• System.IdentityModel.Tokens.Jwt
How to Run This Program:
- Download and Run the Web API:
o First, download and run my Web API GitHub Repository: https://github.com/HasanSoherwardi/CRUD_ASP.NETCore_WebApi
o Follow the instructions in the repository's description to run the Web API successfully.
o Keep the Web API's output window open once it's running.
- Download and Run the Authentication and Authorization Project:
o Now, download and run the Authentication and Authorization repository in a separate window of Visual Studio 2022.
- Login Credentials:
o Admin User:
User-Id: hasan
Password: 123456
o Other Users:
User-Id: hamza
Password: 123456
User-Id: murtaza
Password: 123456
Happy Programming!