atlassian-connect-auth
Version:
Helper for handling webhooks from Atlassian products
19 lines (15 loc) • 547 B
text/typescript
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;