@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
12 lines (11 loc) • 472 B
TypeScript
/**
* Dynamically generate the callback URL for OAuth2/OpenID SSO providers
*
* Uses AUTH_ALLOWED_PUBLIC_URLS to find an alternate PUBLIC_URL based on the origins protocol and host.
* Defaults to the PUBLIC_URL if no match is found.
*
* @param providerName SSO provider name
* @param requestOrigin Origin of the request (protocol + host)
* @returns Callback URL
*/
export declare function generateCallbackUrl(providerName: string, requestOrigin: string): string;