Authentication
Factory to create handshake
Static Method Summary
Static Public Methods | ||
public static |
create(parameters: {authType: string, deploymentId: string, login: string, password: string}): TokenHandshake | CredentialsHandshake |
|
public static |
delegating(parameters: {deploymentId: string, token: string}): TokenHandshake |
|
public static |
|
|
public static |
|
Static Public Methods
public static create(parameters: {authType: string, deploymentId: string, login: string, password: string}): TokenHandshake | CredentialsHandshake source
Return:
TokenHandshake | CredentialsHandshake |
public static delegating(parameters: {deploymentId: string, token: string}): TokenHandshake source
Return:
TokenHandshake |
Example:
// Explicit deploymentId
// Authentication provide optional deployment id, according to the following convention `${ServiceType.toLowerCase()_0}`
Authentication.delegating({
deploymentId: '<YOUR-DELEGATING-AUTHENTICATION-DEPLOYMENT-ID>',
token: null
})
public static simple(parameters: {deploymentId: string, login: string, password: string}): CredentialsHandshake source
Return:
CredentialsHandshake |
Example:
// Explicit deploymentId
// Authentication provide optional deployment id, according to the following convention `${ServiceType.toLowerCase()_0}`
Authentication.delegating({
deploymentId: '<YOUR-SIMPLE-AUTHENTICATION-DEPLOYMENT-ID>',
login: <USER-LOGIN>,
password: '<USER-PASSWORD>'
})
public static weak(parameters: {deploymentId: string, token: string}): TokenHandshake source
Return:
TokenHandshake |
Example:
// Explicit deploymentId
// Authentication provide optional deployment id, according to the following convention `${ServiceType.toLowerCase()_0}`
Authentication.delegating({
deploymentId: '<YOUR-WEAK-AUTHENTICATION-DEPLOYMENT-ID>',
token: null
})