C# Class Open.Core.Identity.OpenIdAuthentication

Helper methods for authenticating a user against an OpenId provider.
Mostrar archivo Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
GetAuthInfo ( string apiKey, string token ) : string

Calls the 'auth_info' method on the JanRain server and parses the response.

See: https://rpxnow.com/relying_parties/listbox-me/setup_tokenurl#steps

GetAuthenticationProfile ( string apiKey, string token ) : AuthenticationProfile

Calls the 'auth_info' method on the JanRain server and parses the response.

See: https://rpxnow.com/relying_parties/listbox-me/setup_tokenurl#steps

ToProfile ( string profileXml ) : AuthenticationProfile

Parses the given 'auth_info' XML into an 'AuthenticationProfile' object.

Private Methods

Method Description
GetError ( dynamic root ) : AuthenticationException

Method Details

GetAuthInfo() public static method

Calls the 'auth_info' method on the JanRain server and parses the response.
See: https://rpxnow.com/relying_parties/listbox-me/setup_tokenurl#steps
public static GetAuthInfo ( string apiKey, string token ) : string
apiKey string The API key of the JanRain account. This can be retrieved from the account page. See link below.
token string /// The token returned by the initial redirect to the JanRain server in the POST data of the return call.
/// To retrieve this use: Request["token"] ///
return string

GetAuthenticationProfile() public static method

Calls the 'auth_info' method on the JanRain server and parses the response.
See: https://rpxnow.com/relying_parties/listbox-me/setup_tokenurl#steps
public static GetAuthenticationProfile ( string apiKey, string token ) : AuthenticationProfile
apiKey string The API key of the JanRain account. This can be retrieved from the account page. See link below.
token string /// The token returned by the initial redirect to the JanRain server in the POST data of the return call.
/// To retrieve this use: Request["token"] ///
return AuthenticationProfile

ToProfile() public static method

Parses the given 'auth_info' XML into an 'AuthenticationProfile' object.
public static ToProfile ( string profileXml ) : AuthenticationProfile
profileXml string The raw XML string.
return AuthenticationProfile