IPWorks Auth 2020 Node.js Edition

Questions / Feedback?

AuthMode Property

The authentication mode.

Syntax

 saml.getAuthMode([callback])
 saml.setAuthMode( authMode, [callback])

Possible Values

  0 (camSharePointOnline), 
  1 (camDynamicsCRM), 
  2 (camADFS), 
  3 (camCustom)

Default Value

0

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for the getAuthMode([callback]) method is defined as:

function(err, data){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'data' is the value returned by the method.

The callback for the setAuthMode([callback]) method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

This property specifies the authentication mode. Possible values are:

0 (camSharePointOnline - default) Microsoft SharePoint Online
1 (camDynamicsCRM) Microsoft Dynamics CRM
2 (camADFS) Active Directory Federation Services
3 (camCustom) Custom

When this property is set the component is initialized based on common settings for the selected mode.

Setting this property to 2 (camADFS) or 3 (camCustom) will clear the values in FederationURN, and FederationSTS. There is no functional difference between 2 (camADFS) and 3 (camCustom), they operate identically.

Setting this property to 0 (camSharePointOnline) or 1 (camDynamicsCRM) will populate FederationURN, and FederationSTS with known valid values for FederationURN, and FederationSTS.

The table below shows which properties are set depending on the value of this property.

AuthModeFederationURNFederationSTSUserRealm
camSharePointOnlineurn:federation:MicrosoftOnline"https://login.microsoftonline.com/RST2.srf""https://login.microsoftonline.com/GetUserRealm.srf"
camDynamicsCRMurn:federation:MicrosoftOnline"https://login.microsoftonline.com/RST2.srf""https://login.microsoftonline.com/GetUserRealm.srf"
camADFS""""""
camCustom""""""

The value 3 (camCustom) may be used with any STS as long as WS-TRUST is supported.

This property is not available at design time.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Auth 2020 Node.js Edition - Version 20.0 [Build 8155]