Receive and process unsolicited Attribute Exchange assertion messages.
| C# | Visual Basic | Visual C++ |
public class AXReceiver
Public Class AXReceiver
public ref class AXReceiver
| All Members | Constructors | Methods | |||
| Icon | Member | Description |
|---|---|---|
| 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.
|
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.
For ASP.NET:
CopyC#
For other environments:
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(); } } }
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(); } }
| Object | |
| AXReceiver | |