Skip to content

HasanSoherwardi/BlazorWebAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. 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.

  1. 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.

  1. 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!

About

Authentication and Authorization in Blazor Hybrid (MAUI Blazor)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published