UNPKG

atlassian-connect-auth

Version:
19 lines (15 loc) 547 B
import { ConnectJwt } from '../types'; /** * Implementations should download the public key from the Atlassian CDN. */ export interface KeyProvider { get(kid: string, unverifiedConnectJwt: ConnectJwt): Promise<string>; } /** * Default Connect Install Key CDN URLs for production and staging. */ export enum ConnectInstallKeysCdnUrl { production = 'https://connect-install-keys.atlassian.com', staging = 'https://asap-distribution.us-west-2.staging.atl-asap.net', } export type EnvironmentType = keyof typeof ConnectInstallKeysCdnUrl;