Authentication Property
      
 

Description

Determines type of authentication with the XMPP server.


Property type

A AuthenticationEnum enumeration.  


Syntax

object.Authentication [= value]



The Authentication Property syntax has these parts:

Part Description
object An expression evaluating to an object of type wodXMPP.
value A AuthenticationEnum enumeration, as described in settings.

Settings

The settings for value are:

Constant Value Description
 AuthAutomatic 0 Auto select authentication.
 AuthPlain 1 Plain authentication.
 AuthDigest 2 Digest authentication.
 AuthNTLM 3 NTLM authentication.
 AuthNTLMCurrentUser 4 NTLM authentication using credentials of currently logged on user.
AuthAnonymous 5 Authenticate as Anonymous user.
AuthMSNOAuth2 6 X-MESSENGER-OAUTH2 simple authentication.

Remarks

This property defines what type of authentication method will wodXMPP use when it tries to connect to remote server. Typically you will leave it to AuthAutomatic so best authentication model is negotiated and selected. However, in certain cases you may want to force, for example, AuthNTLM authentication by selecting it manually.

There is also option of selecting AuthNTLMCurrentUser. When selected, currently logged on user's credentials will be used. There is no need to set Password at all in that case, since wodXMPP will acquire it from Windows itself. You should make sure Login property is set to same value as currently logged on user, otherwise error will be returned.

If AuthAnonymous is selected, wodXMPP will attempt to authenticate without providing password. This feature also has to be supported by server in order to suceed.

AuthMSNOAuth2 is used for authentication to Windows Live account over XMPP protocol. In order to connect to Windows Live account you need to retrieve your access token. This value should be set inside Password property. Instructions on how to obtain access token and connect wodXMPP to Windows Live can be found in our knowledge base.