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

Parameter

Type

Description

authorizeUrl

string

The external authorization URL.

clientId

string

The external client ID.

redirectUri

string

The external identity provider redirect URI.

loginRequest

BaseLoginRequest

The Medplum login request.

pkceEnabled

boolean

(Optional) Whether PKCE should be enabled for this external auth request. Defaults to true.

Returns:

string

The external identity provider redirect URI.