Giter Site home page Giter Site logo

azureb2c-poc's Introduction

azureb2c-poc

  • ​Develop .NET 8 / Blazor Server-Side POC App
  • ​Integrate Microsoft Work Accounts
  • ​Integrate Microsoft B2C Personal Accounts
  • ​Integrate Google OAuth
  • ​Integrate Local Account Support
  • ​Data segregation based on Customer Tenant ID
  • ​Custom Sign-Up flow based on link validation
  • ​Identify customer id for non-work accounts
  • ​Blazor Dashboard Sample
  • ​PowerBI Embedded Report Sample

Samples and Assistive tutorials:

Setting up the Azure B2C Sample App

Azure Required Resources:

  • Azure App Service
  • Azure SQL Database
  • Azure B2C Tenant
  • Azure App Registration

Update the appsettings.json AzureAdB2c with your configuration:

{
  "AzureAdB2C": {
    "Instance": "https://{{Your Azure B2C Domain}}.b2clogin.com/tfp/",
    "ClientId": "{{Your Application Client ID}}",
    "CallbackPath": "/signin-oidc",
    "Domain": "{{Your Azure B2C Domain}}.onmicrosoft.com",
    "SignUpSignInPolicyId": "{{Your Signup Policy Id}}",
    "ResetPasswordPolicyId": "{{Optional Reset Password policy}}",
    "EditProfilePolicyId": "{{Optional Edit profile policy}}",
    "TenantId": "common"
  },
  ...
}

Update your database connection strings (in Azureb2C.AuthApi, AzureB2C.Blazor, AzureB2C.Data.Migrator appsettings.json files):

{
    ...
  "Finbuckle:MultiTenant:Stores:ConfigurationStore": {
    "Defaults": {
      "ConnectionString": "{{Your Azure SQL Server connection string}}"
    }
  },
  "ConnectionStrings": {
    "IdentityDatabase": "{{Your Azure SQL Server connection string goes here}}"
  }
}

Run ef core database initialization

dotnet run -- migrate

This will deploy the Finbuckle Multitenant datastore to your Azure SQL Database

Next up, deploy the application to your Azure App Service. We recommend using the Dockerfile build to build a container and publish it to an Azure Container Registry, and then deploy the App Service using the Docker container. You can also use the VS Publish, or Azure DevOps deployment to deploy the App Service using traditional methods. Any of these methods are supported, and documentation for them can be found here:

azureb2c-poc's People

Contributors

willgkizan avatar

Watchers

Zachary Way avatar Mike Branstein avatar David Buckingham avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.