AuthMode Property
The authentication mode.
Syntax
ANSI (Cross Platform) int GetAuthMode();
int SetAuthMode(int iAuthMode); Unicode (Windows) INT GetAuthMode();
INT SetAuthMode(INT iAuthMode);
Possible Values
CAM_SHARE_POINT_ONLINE(0),
CAM_DYNAMICS_CRM(1),
CAM_ADFS(2),
CAM_CUSTOM(3)
@property (nonatomic,readwrite,assign,getter=authMode,setter=setAuthMode:) int authMode; - (int)authMode; - (void)setAuthMode:(int)newAuthMode;
Possible Values
CAM_SHARE_POINT_ONLINE(0),
CAM_DYNAMICS_CRM(1),
CAM_ADFS(2),
CAM_CUSTOM(3)
#define PID_SAML_AUTHMODE 10 IPWORKSAUTH_EXTERNAL void* IPWORKSAUTH_CALL IPWorksAuth_SAML_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSAUTH_EXTERNAL int IPWORKSAUTH_CALL IPWorksAuth_SAML_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
0
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.
AuthMode | FederationURN | FederationSTS | UserRealm |
camSharePointOnline | urn:federation:MicrosoftOnline | "https://login.microsoftonline.com/RST2.srf" | "https://login.microsoftonline.com/GetUserRealm.srf" |
camDynamicsCRM | urn: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