node-expose-sspi › Globals › "src/sso/client" › Client
Allow to fetch url with a system that uses the negotiate protocol. Cookies are managed if necessary during the process.
export
- Client
• agent: agent = agent
Defined in src/sso/client.ts:34
• clientCookie: ClientCookie‹› = new ClientCookie()
Defined in src/sso/client.ts:32
• clientInfo: ClientInfo‹› = new ClientInfo()
Defined in src/sso/client.ts:33
▸ 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(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(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(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