C# Class WindowsAzure.Acs.Oauth2.Client.WinRT.Protocol.OAuthMessageExtensions

Mostrar archivo Open project: maartenba/WindowsAzure.Acs.Oauth2

Public Methods

Method Description
CreateQueryString ( string>.Dictionary parameters ) : string

Creates a query string from the given name-value pairs.

GetCodeResponseUri ( this message, string authorizationCode ) : string

Generates a Uri to redirect the user's browser to, along with some OAuth paramters in the query string.

GetErrorResponseUri ( this message, string errorCode, string errorDescription ) : string

Generates a Uri with the error message in the query string.

Method Details

CreateQueryString() public static method

Creates a query string from the given name-value pairs.
public static CreateQueryString ( string>.Dictionary parameters ) : string
parameters string>.Dictionary The name-value pairs.
return string

GetCodeResponseUri() public static method

Generates a Uri to redirect the user's browser to, along with some OAuth paramters in the query string.
public static GetCodeResponseUri ( this message, string authorizationCode ) : string
message this The incoming request message.
authorizationCode string The authorization code.
return string

GetErrorResponseUri() public static method

Generates a Uri with the error message in the query string.
public static GetErrorResponseUri ( this message, string errorCode, string errorDescription ) : string
message this Then incoming request message.
errorCode string The error code.
errorDescription string A description of the error.
return string