Skip to content

Was85/BlazorWebApp.AzureB2c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlazorWebApp.AzureB2c

This project is a Blazor Web application integrated with Azure AD B2C for authentication.

Features

  • Blazor WebAssembly front-end
  • Azure AD B2C authentication
  • Basic example of protected routes

Prerequisites

  • .NET SDK 6.0 or later

  • Azure AD B2C tenant

    Setup

  1. Clone the repository:
    git clone https://github.com/Was85/BlazorWebApp.AzureB2c.git
    cd BlazorWebApp.AzureB2c
    
  2. Configure Azure AD B2C:

Register a new application in your Azure AD B2C tenant. Set the redirect URI to https://localhost:5001/authentication/login-callback. Note the Application (client) ID and Tenant ID.

  1. Update your-Settings.json with your Azure AD B2C configuration:
{
  "AzureAdB2C": {
    "Authority": "https://<tenant>.b2clogin.com/tfp/<tenant>.onmicrosoft.com/<policy>",
    "ClientId": "<client-id>",
    "ValidateAuthority": true
  }
}

Usage

The home page is accessible to everyone. The Fetch Data page requires authentication.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published