Skip to content

resolveRedirectUri

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/ui-core/src/components/api-explorer/oauth2.ts

Where the authorization server sends the reader back.

DERIVED from the page, never reflected from input: origin + pathname of the docs page the reader is standing on, with query and fragment dropped. A host may pass one explicitly (a dedicated callback route), and it is honoured only if it is same-origin — an allowlist of one, which is the only allowlist a browser client can enforce for itself.

Signature

ts
function resolveRedirectUri(location: { origin: string; pathname: string }, configured: string): string

Parameters

NameType
location{ origin: string; pathname: string }
configuredstring

Returns: string

Was this page helpful?

Download as PDF