Skip to content

ZoolWay/aurelia-dotnet-template

Repository files navigation

Features

  • Aurelia SPA hosted in ASP.NET Core

  • bundled with WebPack

  • jQuery

  • Bootstrap

  • Kendo UI Core

  • WebApi project authenticated against Azure AD / AD-B2C using MSAL

  • Intercepted calls against that WebApi

Azure config

See AureliaBase.Azure.Api and AureliaBase.Web

Azure AD

appsettings.json

    "AzureAd": {
        "Instance": "https://login.microsoftonline.com/",
        "Domain": "xyz.onmicrosoft.com",
        "TenantId": "guid",
        "ClientId": "guid"
    },

settings.ts

export let azureAdConfig = {
    clientId: 'guid',
    authority: 'https://login.microsoftonline.com/xyz.onmicrosoft.com',
}

Azure AD B2C

appsetings.json

  "AzureAdB2C": {
    "Instance": "https://login.microsoftonline.com/tfp/",
    "ClientId": "guid",
    "Domain": "xyz.onmicrosoft.com",
    "SignUpSignInPolicyId": "B2C_1_signupinXYZ"
  },

settings.ts

export let azureAdConfig = {
    clientId: 'guid',
    authority: 'https://login.microsoftonline.com/tfp/xyz.onmicrosoft.com/B2C_1_signupinXYZ',
}

Credits