C# Class Disqus.Examples.SSO

Mostrar archivo Open project: disqus/DISQUS-API-Recipes

Public Methods

Method Description
GetPayload ( string user_id, string user_name, string user_email, string avatar_url = "", string website_url = "" ) : string

Gets the Disqus SSO payload to authenticate users

LogoutUser ( ) : string

Method to log out a user from SSO

Private Methods

Method Description
ByteToString ( byte buff ) : string
GeneratePayload ( string serializedUserData ) : string

Method Details

GetPayload() public static method

Gets the Disqus SSO payload to authenticate users
public static GetPayload ( string user_id, string user_name, string user_email, string avatar_url = "", string website_url = "" ) : string
user_id string The unique ID to associate with the user
user_name string Non-unique name shown next to comments.
user_email string User's email address, defined by RFC 5322
avatar_url string URL of the avatar image
website_url string Website, blog or custom profile URL for the user, defined by RFC 3986
return string

LogoutUser() public static method

Method to log out a user from SSO
public static LogoutUser ( ) : string
return string