Gateway

The Gateway class is a child class of the SetConfig class. The Gateway class has a constructor that takes in a applicationID and a config object. The Gateway class has a bunch of methods that make API calls to the Identity Server.

Constructor

new Gateway(gatewayID, config)

The constructor function is a special function that is called when an object is created from a class

Parameters:
NameTypeDescription
gatewayIDstring

The ID of the gateway you want to get the list of users from.

configConfig

This is the configuration object that is passed to the constructor of the base class.

Extends

  • SetConfig

Methods

createAPIKey(payload) → {Output-CreateAPIKey}

It creates an API key for the gateway.

Parameters:
NameTypeDescription
payloadInput-CreateAPIKeyForUser

Input-CreateAPIKeyForUser

Returns:

The response from the API.

Type: 
Output-CreateAPIKey

deleteGateway() → {Output-EmptyPayload}

It deletes the gateway.

Returns:

The response from the API.

Type: 
Output-EmptyPayload

getAPIKeyInfo(payload) → {Output-GetAPIKeyInfo}

It returns the API key information for the application.

Parameters:
NameTypeDescription
payloadInput-GetAPIKeyInfo

Input-GetAPIKeyInfo

Returns:

The response from the API.

Type: 
Output-GetAPIKeyInfo

getAPIKeyList(payloadopt) → {Output-GetAPIKeyList}

It returns the list of API keys for the gateway.

Parameters:
NameTypeAttributesDescription
payloadInput-GetAPIKeyList<optional>

Input-GetAPIKeyList

Returns:

The response from the API.

Type: 
Output-GetAPIKeyList

getCollaboratorInfoOfOrg(payload) → {Output-GetCollaboratorInfoOfOrg}

It returns rights of the collaborator (member) of the application.

Parameters:
NameTypeDescription
payloadInput-GetCollaboratorInfoOfOrg

Input-GetCollaboratorInfoOfOrg

Returns:

The response from the API.

Type: 
Output-GetCollaboratorInfoOfOrg

getCollaboratorInfoOfUser(payload) → {Output-GetCollaboratorInfoOfUser}

It returns rights of the collaborator (member) of the application.

Parameters:
NameTypeDescription
payloadInput-GetCollaboratorInfoOfUser

Input-GetCollaboratorInfoOfUser

Returns:

The response from the API.

Type: 
Output-GetCollaboratorInfoOfUser

getCollaboratorList(payloadopt) → {Output-GetCollabortorList}

It returns the list of collaborators (members) of the application.

Parameters:
NameTypeAttributesDescription
payloadInput-GetCollabortorList<optional>

Input-GetCollabortorList

Returns:

The response from the API.

Type: 
Output-GetCollabortorList

getGatewayInfo() → {Output-GetGatewayInfo}

It returns the gateway information.

Returns:

The response from the API. ----> CreateGateway

Type: 
Output-GetGatewayInfo

getGatewayList(payloadopt) → {Output-GetGatewayList}

It returns the list of gateways.

Parameters:
NameTypeAttributesDescription
payloadInput-GetGatewayList<optional>

Input-GetGatewayList

Returns:

The response from the API. ----> GetGatewayList

Type: 
Output-GetGatewayList

getGatewayRight() → {Output-GetGatewayRight}

It returns the gateway rights.

Returns:

The response from the API.

Type: 
Output-GetGatewayRight

purgeGateway() → {Output-EmptyPayload}

It purges the gateway.

Returns:

The response from the API.

Type: 
Output-EmptyPayload

restoreGateway() → {Output-EmptyPayload}

It restores the gateway.

Returns:

The response from the API.

Type: 
Output-EmptyPayload

searchGateway() → {Output-SearchGateway}

It searches the gateway.

Returns:

The response from the API.

Type: 
Output-SearchGateway

setCollaboratorOfOrg(payload) → {Output-EmptyPayload}

It sets the rights of a collaborator (member) on the application.

Parameters:
NameTypeDescription
payloadInput-SetCollaboratorOfOrg

Input-SetCollaboratorOfOrg

Returns:

The response from the API.

Type: 
Output-EmptyPayload

setCollaboratorOfUser(payload) → {Output-EmptyPayload}

It sets the rights of a collaborator (member) on the application.

Parameters:
NameTypeDescription
payloadInput-SetCollaboratorOfUser

Input-SetCollaboratorOfUser

Returns:

The response from the API.

Type: 
Output-EmptyPayload

updateAPIKey(payload) → {Output-UpdateAPIKey}

It returns the information of the api key that has been created by the user.

Parameters:
NameTypeDescription
payloadInput-UpdateAPIKeyOfApplication

Input-UpdateAPIKeyOfApplication

Returns:

The response from the API.

Type: 
Output-UpdateAPIKey

updateGateway(payload) → {Output-UpdateGateway}

It updates the gateway.

Parameters:
NameTypeDescription
payloadInput-UpdateGateway

UpdateGateway

Returns:

The response from the API. ----> UpdateGateway

Type: 
Output-UpdateGateway