ExtremeSwank OpenID
AXReceiver Class
NamespacesExtremeSwank.OpenIdAXReceiver
Receive and process unsolicited Attribute Exchange assertion messages.
Declaration Syntax
C#Visual BasicVisual C++
public class AXReceiver
Public Class AXReceiver
public ref class AXReceiver
Members
All MembersConstructorsMethods



IconMemberDescription
AXReceiver()()()
Creates a new instance of AXReceiver.

AXReceiver(NameValueCollection)
Creates a new instance of AXReceiver.

Equals(Object) (Inherited from Object.)
Finalize()()() (Inherited from Object.)
GetHashCode()()() (Inherited from Object.)
GetType()()() (Inherited from Object.)
MemberwiseClone()()() (Inherited from Object.)
RetrieveUser()()()
Validate the authentication response, if present.

ToString()()() (Inherited from Object.)
ValidateResponse()()()
Check with the OpenID Provider to ensure the message is valid.

Remarks

Attribute Exchange specification supports subscribing to updates whenever changes are made to values stored at the OpenID Provider. Use AXReceiver to receive the updates whenever they are pushed out from the Provider.

Set AttributeExchange.UpdateUrl property during an Attribute Exchange Store request to subscribe to changes. If supported by the OpenID Provider, the URL specified in the UpdateUrl property will be automatically notified whenever the subscribed values change.

AttributeExchange.UpdateUrl should be set to the URL where AXReceiver is configured.

Examples
For ASP.NET:
CopyC#
using ExtremeSwank.OpenId;

public partial class _Default 
{
  protected void Page_Load(object sender, EventArgs e) 
  {
    if (!IsPostBack) 
    {
      AXReceiver axr = new AXReceiver();
      OpenIdUser receivedData = axr.RetrieveUser();
    }
  }
}
For other environments:
CopyC#
using ExtremeSwank.OpenId;

public static class MyClass 
{
  public static OpenIdUser ProcessAXResponse(NameValueCollection arguments) 
  {
    if (arguments == null) { throw new ArgumentNullException("arguments"); }

    // Create a new AXReceiver with the arguments
    AXReceiver axr = new AXReceiver(arguments);

    // After processing, return the populated OpenIdUser object
    // or null if response was invalid.
    return axr.RetrieveUser();
  }
}
Inheritance Hierarchy
Object
AXReceiver

Assembly: ExtremeSwank.OpenId (Module: ExtremeSwank.OpenId) Version: 4.0.0.1 (4.0.0.1)