This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"apiVersion": "2015-08-01", | |
"name": "[variables('apiSiteName')]", | |
"type": "Microsoft.Web/sites", | |
"location": "[resourceGroup().location]", | |
"dependsOn": [ | |
"[resourceId('Microsoft.Cache/Redis/', variables('RedisCache').Name)]", | |
"[resourceId('Microsoft.Search/searchServices/', variables('searchAppName'))]", | |
"[resourceId('Microsoft.Cdn/profiles/', variables('profileName'))]", | |
"[resourceId('Microsoft.Web/serverFarms/', parameters('apiHostingPlanName'))]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "[concat(variables('apiSiteName'), '/staging')]", | |
"type": "Microsoft.Web/sites/slots", | |
"location": "[resourceGroup().location]", | |
"apiVersion": "2015-08-01", | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/Sites', variables('apiSiteName'))]" | |
], | |
"tags": { | |
"[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('apiHostingPlanName'))]": "Resource", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "[variables('storageName')]", | |
"type": "Microsoft.Storage/storageAccounts", | |
"location": "[resourceGroup().location]", | |
"apiVersion": "2016-01-01", | |
"sku": { | |
"name": "Standard_LRS", | |
"tier": "Standard" | |
}, | |
"kind": "BlobStorage", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Redis | |
"redis": { | |
"value": "[concat(reference(resourceId('Microsoft.Cache/Redis', variables('RedisCache').Name)).hostName, variables('RedisCache').WebAppRedisSettingText, listKeys(resourceId('Microsoft.Cache/Redis', variables('RedisCache').Name), '2015-08-01').primaryKey)]", | |
"type": "Custom" | |
} | |
// Search | |
"properties": { | |
"Search:Key": "[listAdminKeys(resourceId('Microsoft.Search/searchServices/', variables('searchAppName')), '2015-08-19').primaryKey]", | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "Microsoft.Cache/Redis", | |
"name": "[variables('RedisCache').Name]", | |
"apiVersion": "2016-04-01", | |
"location": "[resourceGroup().location]", | |
"tags": { | |
"displayName": "Redis Cache" | |
}, | |
"properties": { | |
"redisVersion": "3.0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AzureAdB2C": { | |
"Instance": "https://login.microsoftonline.com/tfp/", | |
"ClientId": "8b2b1e43-a2f7-4538-afbf-9b7ac293ea1f", | |
"Domain": "aureliab2c.onmicrosoft.com", | |
"SignUpSignInPolicyId": "B2C_1_signupin" | |
}, | |
"Logging": { | |
"IncludeScopes": false, | |
"Debug": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Authorization; | |
using Microsoft.AspNetCore.Mvc; | |
namespace Backend.Controllers | |
{ | |
[Authorize] | |
[Route("api/[controller]")] | |
public class PeopleController : Controller | |
{ | |
[HttpGet] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {HttpClient} from 'aurelia-fetch-client'; | |
import {inject} from 'aurelia-framework'; | |
import settings from './settings'; | |
import * as jwt_decode from 'jwt-decode'; | |
declare const Msal : any; | |
@inject(HttpClient) | |
export class Auth { | |
private httpClient : HttpClient; | |
public authenticated : boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aurelia | |
.start() | |
.then((a) => { | |
// get auth object from Aurelia container | |
let auth : Auth = a | |
.container | |
.get(Auth); | |
setTimeout(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"prepend": [ | |
"node_modules/bluebird/js/browser/bluebird.core.js", | |
"node_modules/aurelia-cli/lib/resources/scripts/configure-bluebird.js", | |
"node_modules/requirejs/require.js", | |
"lib/msal.js" | |
], | |
"dependencies": [ | |
"aurelia-binding", | |
"aurelia-bootstrapper", | |
"aurelia-dependency-injection", |
OlderNewer