Call to open a new non-modal browser window.

Namespace:  RedCritterV1
Assembly:  RedCritterV1 (in RedCritterV1.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

      
 C#  Visual Basic 
public bool ShowBrowser(
	Uri absoluteURI,
	bool appendContext
)
Public Function ShowBrowser ( _
	absoluteURI As Uri, _
	appendContext As Boolean _
) As Boolean

Parameters

absoluteURI
Uri
The absolute URL to open, must begin with http:// or https://.
appendContext
Boolean
Set to true to have the Player append credentials and context to the querystring.

Return Value

True if the window was successfully opened.

Remarks

This method will only be successful if the App currently has focus.

If appendContext is true, the following variables will be automatically appended to the querystring of the supplied URL...

aa = The AccountAuthorization symetrically encrypted with the App's symetric key with SALT of "REDCRITTER"

uid = the calling User's UserID

ai = the calling App's AppID

ucai = the UserChannelAppID

staging = 1 if the App is running in staging mode, 0 if it is running in production mode

To decrypt the AccountAuthorization on the server side. Generate the hash key for your App's Symetric Key using "REDCRITTER" as SALT. Then use the returned HashKey to symetrically decrypt the value.

Examples

CopyC#
//Sample code for decrypting the AccountAuthorization using the server-side RedCritter API...
String SALT = "REDCRITTER";
String MyAppsSymetricKey = "ED8FF077-CD67-4216-9C7E-0A20E4EAB6D1"; //replace with your App's symetric key, located on your App's management page.    
String HashKey = RedCritterServerV1.Encryption.Symetrical.getHashKey(MyAppsSymetricKey, SALT);
String descryptedString = RedCritterServerV1.Encryption.Symetrical.Decrypt(HashKey, Request.QueryString["aa"].ToString());

See Also