C# Class Vanilla.jsConnect

This object contains the client code for Vanilla jsConnect signle-sign-on. Version 1.0.3
Show file Open project: vanilla/jsConnectdotNet

Public Properties

Property Type Description
Debug bool

Public Methods

Method Description
GetJsConnectString ( IDictionary user, NameValueCollection request, string clientID, string secret, bool secure ) : string

Backwards compatability version of GetJsConnectString().

GetJsConnectString ( IDictionary user, NameValueCollection request, string clientID, string secret, bool secure, string hash ) : string
Hash ( string password, string method ) : string
JsonEncode ( IDictionary data ) : string

Encode a dictionary as json.

SignJsConnect ( IDictionary data, string clientID, string secret, bool setData, string hash ) : string
StrUpper ( System m ) : string
Timestamp ( ) : int
UrlEncode ( string s ) : string

Protected Methods

Method Description
Error ( string code, string message ) : IDictionary

Method Details

Error() protected static method

protected static Error ( string code, string message ) : IDictionary
code string
message string
return IDictionary

GetJsConnectString() public static method

Backwards compatability version of GetJsConnectString().
public static GetJsConnectString ( IDictionary user, NameValueCollection request, string clientID, string secret, bool secure ) : string
user IDictionary
request System.Collections.Specialized.NameValueCollection
clientID string
secret string
secure bool
return string

GetJsConnectString() public static method

public static GetJsConnectString ( IDictionary user, NameValueCollection request, string clientID, string secret, bool secure, string hash ) : string
user IDictionary
request System.Collections.Specialized.NameValueCollection
clientID string
secret string
secure bool
hash string
return string

Hash() public static method

public static Hash ( string password, string method ) : string
password string
method string
return string

JsonEncode() public static method

Encode a dictionary as json.
public static JsonEncode ( IDictionary data ) : string
data IDictionary
return string

SignJsConnect() public static method

public static SignJsConnect ( IDictionary data, string clientID, string secret, bool setData, string hash ) : string
data IDictionary
clientID string
secret string
setData bool
hash string
return string

StrUpper() public static method

public static StrUpper ( System m ) : string
m System
return string

Timestamp() public static method

public static Timestamp ( ) : int
return int

UrlEncode() public static method

public static UrlEncode ( string s ) : string
s string
return string

Property Details

Debug public static property

public static bool Debug
return bool