Skip to main content

core.medplumclient.getexternalauthredirecturi

Home > @medplum/core > MedplumClient > getExternalAuthRedirectUri

MedplumClient.getExternalAuthRedirectUri() method

Builds the external identity provider redirect URI.

Signature:

getExternalAuthRedirectUri(authorizeUrl: string, clientId: string, redirectUri: string, loginRequest: BaseLoginRequest, pkceEnabled?: boolean): string;

Parameters

ParameterTypeDescription
authorizeUrlstringThe external authorization URL.
clientIdstringThe external client ID.
redirectUristringThe external identity provider redirect URI.
loginRequestBaseLoginRequestThe Medplum login request.
pkceEnabledboolean(Optional) Whether PKCE should be enabled for this external auth request. Defaults to true.

Returns:

string

The external identity provider redirect URI.