Skip to main content

Function: registerAuthenticationProvider()

registerAuthenticationProvider(id, label, provider, options?): Disposable

Register an authentication provider.

There can only be one provider per id and an error is being thrown when an id has already been used by another provider. Ids are case-sensitive.

Parameters

id: string

The unique identifier of the provider.

label: string

The human-readable name of the provider.

provider: AuthenticationProvider

The authentication provider provider.

options?: AuthenticationProviderOptions

Returns

Disposable

A disposable that unregisters this provider when being disposed.

Params

options Additional options for the provider.

Source

packages/extension-api/src/extension-api.d.ts:3314