Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fathym_common/src/src.deps.ts>DenoKVOAuth.createOktaOAuthConfig

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Go to Latest
function DenoKVOAuth.createOktaOAuthConfig
import { DenoKVOAuth } from "https://deno.land/x/fathym_common@v0.0.142/src/src.deps.ts";
const { createOktaOAuthConfig } = DenoKVOAuth;

Returns the OAuth configuration for Okta.

Requires --allow-env[=OKTA_CLIENT_ID,OKTA_CLIENT_SECRET,OKTA_DOMAIN] permissions and environment variables:

  1. OKTA_CLIENT_ID
  2. OKTA_CLIENT_SECRET
  3. OKTA_DOMAIN

Examples

Example 1

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

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

Parameters

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

Returns

OAuth2ClientConfig