Skip to main content

Interface: CredentialsProviderOptions<C>

@divine/uri.CredentialsProviderOptions

Parameters for a CredentialsProvider.

Type parameters

NameTypeDescription
Cextends CredentialsThe type of credentials that is to be provied.

Properties

authScheme

authScheme: AuthScheme<C>

The AuthScheme that needs the credentials.

Defined in

uri/src/auth-schemes.ts:55


authorization

Optional authorization: Authorization

If mode is verify, the untrusted authorization header that was provided.

Defined in

uri/src/auth-schemes.ts:61


challenge

Optional challenge: WWWAuthenticate

If mode is retrieve, the challenge the credential provider should respond to.

Defined in

uri/src/auth-schemes.ts:64


identity

Optional identity: string

If mode is verify, the identity of the credentials that should be verified.

Defined in

uri/src/auth-schemes.ts:58


mode

mode: "retrieve" | "verify"

If credentials should be provided (retrieve) or checked for validity (verify).

Defined in

uri/src/auth-schemes.ts:52


request

Optional request: AuthSchemeRequest

The request that should be authenticated.

Defined in

uri/src/auth-schemes.ts:67