import { createAzureAdb2cOAuthConfig } from "https://deno.land/x/fathym_everything_as_code@v0.0.399/src/deno.deps.ts";
Returns the OAuth configuration for Azure.
Requires --allow-env[=AZURE_ADB2C_CLIENT_ID,AZURE_ADB2C_CLIENT_SECRET,AZURE_ADB2C_DOMAIN,AZURE_ADB2C_POLICY,AZURE_ADB2C_TENANT_ID]
permissions and environment variables:
AZURE_ADB2C_CLIENT_ID
AZURE_ADB2C_CLIENT_SECRET
AZURE_ADB2C_DOMAIN
AZURE_ADB2C_POLICY
AZURE_ADB2C_TENANT_ID
Examples
Example 1
Example 1
import { createAzureAdb2cOAuthConfig } from "https://deno.land/x/deno_kv_oauth@$VERSION/mod.ts";
const oauthConfig = createAzureAdb2cOAuthConfig({
redirectUri: "http://localhost:8000/callback",
scope: ["openid", Deno.env.get("AZURE_ADB2C_CLIENT_ID")!]
});