AuthContext
Handles the auth context when using access tokens.
Constructor Summary
Public Constructor | ||
public |
Creates an AuthContext object |
Member Summary
Public Members | ||
public set |
customerInitiated(flag: boolean): * Sets the auth context to indicate that the next api call would have been initiated by the customer. |
|
public get |
Gets the customer initiated request flag. |
|
public get |
customerTrackingMetadata: CustomerTrackingMetadata: * Gets the customer tracking metadata |
|
public set |
customerTrackingMetadata(value: CustomerTrackingMetadata): * Sets the customer tracking metadata |
|
public set |
Sets the key level to be used to sign the auth header |
|
public get |
Gets the key level |
|
public get |
Gets misc headers |
|
public set |
miscHeaders(value: MiscHeaders): * Sets misc headers |
|
public set |
onBehalfOf(onBehalfOf: string): * Sets the auth context to act on behalf of another member |
|
public get |
onBehalfOf: string: * Gets the currently active memberId |
Private Members | ||
private |
|
|
private |
|
|
private |
_keyLevel: * |
|
private |
_miscHeaders: {} |
|
private |
_onBehalfOf: * |
Public Constructors
Public Members
public set customerInitiated(flag: boolean): * source
Sets the auth context to indicate that the next api call would have been initiated by the customer.
public get customerTrackingMetadata: CustomerTrackingMetadata: * source
Gets the customer tracking metadata
Return:
CustomerTrackingMetadata |
public set customerTrackingMetadata(value: CustomerTrackingMetadata): * source
Sets the customer tracking metadata
public set keyLevel(keyLevel: string): * source
Sets the key level to be used to sign the auth header
public set onBehalfOf(onBehalfOf: string): * source
Sets the auth context to act on behalf of another member