Authentication info consisting of a JWT signed using the locally stored private key.

Param: name

provider name. This name will be used to populate JWT iss (issuer).

Param: privateKey

PEM encoded RSA private key.

Param: keyId

key ID.

Param: username

username to be associated with the issued authentication info.

Param: attributes

additional attributes to be added to the issued authentication info.

Implements

Constructors

  • Parameters

    • name: string
    • privateKey: string
    • keyId: string
    • username: string
    • Optional attributes: Record<string, any>

    Returns LocalAuthenticationProvider

Methods

  • Generates and returns authentication information.

    Returns Promise<AuthenticationInfo>

    authentication information.

  • Resets internal state and releases any associated resources.

    Returns void