Skip to content

Instantly share code, notes, and snippets.

View Stewartarmbrecht's full-sized avatar

Stewart Armbrecht Stewartarmbrecht

View GitHub Profile
export function importEmail(context, req): void {
const parameters = {
assertion: req.headers["x-ms-token-aad-id-token"],
client_id: process.env.WEBSITE_AUTH_CLIENT_ID,
client_secret: process.env.WEBSITE_AUTH_CLIENT_SECRET,
grant_type: "urn:ietf:params:oauth:grant-type:jwt-bearer",
requested_token_use: "on_behalf_of",
resource: "https://graph.microsoft.com",
};
post("https://login.microsoftonline.com/microsoft.com/oauth2/token", {form: parameters},
@Stewartarmbrecht
Stewartarmbrecht / gist:ba079cf6dc42a46816ac
Created September 10, 2015 16:10
xUnit Concurrency Problem with ITestOutputHelper
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
namespace xBDD.Test.Features.RunTests
{
public class xUnitTestOutputConcurrencyIssue