Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function DenoKVOAuth.createAzureAdOAuthConfig
import { DenoKVOAuth } from "https://deno.land/x/fathym_eac_runtime@v0.0.140/src/src.deps.ts";
const { createAzureAdOAuthConfig } = DenoKVOAuth;

Returns the OAuth configuration for Azure.

Requires --allow-env[=AZURE_AD_CLIENT_ID,AZURE_AD_CLIENT_SECRET,AZURE_AD_TENANT_ID] permissions and environment variables:

  1. AZURE_AD_CLIENT_ID
  2. AZURE_AD_CLIENT_SECRET
  3. AZURE_AD_TENANT_ID

Examples

Example 1

import { createAzureAdOAuthConfig } from "https://deno.land/x/deno_kv_oauth@$VERSION/mod.ts";

const oauthConfig = createAzureAdOAuthConfig({
  redirectUri: "http://localhost:8000/callback",
  scope: ["openid"]
});

Parameters

config: { redirectUri?: string; scope: string | string[]; }