Skip to content

Secure a Single Page Application with Azure Active Directory B2C / MSAL library

License

Notifications You must be signed in to change notification settings

CSA-OCP-GER/azure-b2c-spa-msal-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

azure-b2c-aurelia-example

Secure an Aurelia SPA with Azure Active Directory B2C / MSAL

The explanation of the sample application / setup can be found on this blog.

If you want to run the example backend API with your own B2C directory, you have to adjust the following parameters in Backend/appsettings.json:

  • AzureAdB2C:ClientId - the Application ID
  • AzureAdB2C:Domain - the B2C domain name
  • AzureAdB2C:SignUpSignInPolicyId - the SignUp or SignIn Policy

Furthermore, you also have to change the parameters in the settings.ts file in frontend/src:

  • service - the base URI pointing to your API
  • clientId - the Application ID from the B2C directory
  • authority - authority setting for MSAL

Running the frontend application:

  • got to the frontend directory
  • run ´npm install -g aurelia-cli@latest´ (Aurelia Command Line Interface)
  • run ´npm install´ (to install the project dependencies)
  • run ´au run --watch´
  • open your browser pointing to: http://localhost:9000

About

Secure a Single Page Application with Azure Active Directory B2C / MSAL library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published