Coder Social home page Coder Social logo

b2c-dotnet-angular-demo's Introduction

To run

  • Server: dotnet run
  • Client: npm start

Configuration explain

Azure AD B2C

  • Create a new B2C tenant: here is codingfreaksdaken.b2clogin.com
  • Create a new application in the B2C tenant: here is clientId = c21ceda9-3252-4894-83bc-4c46ee105a64
  • Create a new scope in the application: here is https://codingfreaksdaken.onmicrosoft.com/api/user_impersonation
  • Create a new sign up and sign in policy in the B2C tenant: here is B2C_1A_signup_signin_tenant

ASP.NET Core

  • dotnet add package Microsoft.AspNetCore.Authentication.AzureADB2C.UI
  • Add Authentication and config CORS in Startup.cs
  • Config appsettings.json

Angular

  • npm i angular-oauth2-oidc --save
  • Create a new class implements AuthConfig, in file auth0.config.ts
  • Config module to include the access token in the request, in file app.module.ts
  • Example in file app.component.ts

Read more

b2c-dotnet-angular-demo's People

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.