Skip to content

Latest commit

 

History

History
141 lines (80 loc) · 3.35 KB

_src_sso_client_.client.md

File metadata and controls

141 lines (80 loc) · 3.35 KB

node-expose-sspiGlobals"src/sso/client"Client

Class: Client

Allow to fetch url with a system that uses the negotiate protocol. Cookies are managed if necessary during the process.

export

Hierarchy

  • Client

Index

Properties

Methods

Properties

agent

agent: agent = agent

Defined in src/sso/client.ts:34


clientCookie

clientCookie: ClientCookie‹› = new ClientCookie()

Defined in src/sso/client.ts:32


clientInfo

clientInfo: ClientInfo‹› = new ClientInfo()

Defined in src/sso/client.ts:33

Methods

fetch

fetch(resource: string, init?: RequestInit): Promise‹Response›

Defined in src/sso/client.ts:83

Works as the fetch function of node-fetch node module. This function can handle the negotiate protocol with SPNEGO tokens.

memberof Client

Parameters:

Name Type Description
resource string the URL to fetch
init? RequestInit -

Returns: Promise‹Response›

a promise with the HTTP response.


setCredentials

setCredentials(domain: string, user: string, password: string): void

Defined in src/sso/client.ts:46

Set the credentials for running the client as another user.

By default, the credentials are the logged windows account.

memberof Client

Parameters:

Name Type
domain string
user string
password string

Returns: void


setSSP

setSSP(ssp: SecuritySupportProvider): void

Defined in src/sso/client.ts:70

Set the Security Support Provider (NTLM, Kerberos, Negotiate)

memberof Client

Parameters:

Name Type
ssp SecuritySupportProvider

Returns: void


setTargetName

setTargetName(targetName: string): void

Defined in src/sso/client.ts:60

Force the targetName to a value.

For Kerberos, the targetName is the SPN (Service Principal Name).

memberof Client

Parameters:

Name Type
targetName string

Returns: void