Fetches a JWT token from Domino REST API url if there is no current token or current token is expired.
Optional
callback: () => Promise<AccessTokenReturn>a promise the resolves the JWT token for access.
Base URL of the Idp: Domino REST API, Active Directory, Keycloak, Octa, etc.
Creates a clone of current DominoAccess with the given alternate scope.
the alternate scope the clone DominoAccess will have.
a clone of current DominoAccess that has the alternate scope.
Holds all the credentials needed to access the Domino REST API server.
Get JWT token (if any) expiry.
the expiry time of token in seconds or null if there is no expiry time yet.
Optional
expiryExpiry time of JWT token in seconds.
Get current credentials given scope.
the scope of given credentials or null of no scope is given.
Optional
tokenThe JWT token for access.
Updates current credentials using the given new credentials.
the new credentials to have.
the incoming new credentials.
DominoRestAccess to provide JWT Access Tokens to the REST menthods. Might use an authentication method like Basic or OAuth.