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
1. settings.json is configured so that VS Code can configure the functions host environment | |
{ | |
"azureFunctions.deploySubpath": ".", | |
"azureFunctions.scmDoBuildDuringDeployment": true, | |
"azureFunctions.pythonVenv": ".venv", | |
"azureFunctions.projectLanguage": "Python", | |
"azureFunctions.projectRuntime": "~3", | |
"debug.internalConsoleOptions": "neverOpen" | |
} |
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
services.AddIdentityServer(options => options.IssuerUri = "your expected issuer uri"); | |
// ensure the issuer matches in the JWT bearer token | |
services.Configure<JwtBearerOptions>("YourProjectNameAPI", | |
options => options.TokenValidationOptions.ValidIssuer = "your expected issuer uri"); |
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
class Program | |
{ | |
private static IConfiguration Configuration { get; set; } | |
static async Task Main() | |
{ | |
var builder = new HostBuilder(); | |
builder.ConfigureWebJobs(b => | |
{ | |
b.AddAzureStorageCoreServices() |
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
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base | |
WORKDIR /app | |
EXPOSE 80 | |
EXPOSE 443 | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster as build | |
WORKDIR /src | |
COPY *.csproj . | |
RUN dotnet restore "./webapp-basic-netcore.csproj" | |
COPY . . |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Quickstart for MSAL JS</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js"></script> | |
<script src="https://secure.aadcdn.microsoftonline-p.com/lib/0.2.3/js/msal.js"></script> | |
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> | |
</head> |