Package | org.igniterealtime.xiff.auth |
Class | public class XFacebookPlatform |
Inheritance | XFacebookPlatform ![]() ![]() |
Implements | ISASLAuth |
Facebook Chat currently supports the following features, related to authentication:
See also
Property | Defined By | ||
---|---|---|---|
fb_access_token : String [static] | XFacebookPlatform | ||
fb_app_id : String [static] | XFacebookPlatform | ||
![]() | request : XML [read-only]
The XML for the authentication request. | SASLAuth |
Method | Defined By | ||
---|---|---|---|
XFacebookPlatform(connection:IXMPPConnection)
Creates a new XFacebookPlatform authentication object. | XFacebookPlatform | ||
handleChallenge(stage:int, challenge:XML):XML [override]
Called when a challenge to this authentication is received. | XFacebookPlatform | ||
handleResponse(stage:int, response:XML):Object [override]
Called when a response to this authentication is received. | XFacebookPlatform |
Constant | Defined By | ||
---|---|---|---|
MECHANISM : String = X-FACEBOOK-PLATFORM [static] | XFacebookPlatform | ||
![]() | NS : String = urn:ietf:params:xml:ns:xmpp-sasl [static] | SASLAuth | |
![]() | RESPONSE_SUCCESS : String = success [static] | SASLAuth |
fb_access_token | property |
public static var fb_access_token:String
fb_app_id | property |
public static var fb_app_id:String
XFacebookPlatform | () | Constructor |
public function XFacebookPlatform(connection:IXMPPConnection)
Creates a new XFacebookPlatform authentication object.
Parametersconnection:IXMPPConnection — A reference to the XMPPConnection instance in use.
|
handleChallenge | () | method |
override public function handleChallenge(stage:int, challenge:XML):XML
Called when a challenge to this authentication is received.
The mechanism starts with a server challenge, in the form of a common HTTP query string: an ampersand-separated sequence of equals-sign-delimited key/value pairs. The keys and values are UTF-8-encoded and URL-encoded. The query string contains two items: method and nonce.
The client's reply should be a similarly-encoded query string prepared as if it were going to call a method against the Facebook API. The call should contain the following parameters:
The server will then respond with a success or failure message. Note that this needs to be over TLS or you'll get an error.
Parameters
stage:int — The current stage in the authentication process.
| |
challenge:XML — The XML of the actual authentication challenge.
|
XML — The XML response to the challenge.
|
handleResponse | () | method |
override public function handleResponse(stage:int, response:XML):Object
Called when a response to this authentication is received.
Parameters
stage:int — The current stage in the authentication process.
| |
response:XML — The XML of the actual authentication response.
|
Object — An object specifying the current state of the authentication.
|
MECHANISM | Constant |
public static const MECHANISM:String = X-FACEBOOK-PLATFORM