C# Class Microsoft.Research.DataOnboarding.WebApi.Api.WindowsLiveAuthorizationController

Class contains the methods to manage the Windows Live Authentication
Inheritance: ApiController
显示文件 Open project: CDLUC3/dataup2 Class Usage Examples

Public Methods

Method Description
WindowsLiveAuthorizationController ( ) : Microsoft.Research.DataOnboarding.RepositoryAdapters.SkyDrive

Initializes a new instance of the WindowsLiveAuthorizationController class.

Private Methods

Method Description
AppendAuthTokensToCallBackUrl ( Microsoft.Research.DataOnboarding.RepositoryAdapters.SkyDrive.OAuthToken token, string callBackUrl ) : string

Appends the Auth tokens as parameters to the callback Url

AuthorizeUser ( ) : HttpResponseMessage
ConstructCallBack ( string callBack ) : string

Constructs the Callback URL to be used while fetching the AccessToken and RefreshToken. The call back URL should be exactly the same as that specifed during the call to get the Authorization Code

GetAccessTokenFromRefreshToken ( string accessToken, string refreshToken ) : Microsoft.Research.DataOnboarding.RepositoryAdapters.SkyDrive.OAuthToken
GetWindowsLiveLoginUrl ( string callBack ) : string

Constructs the URL for WindowsLive Auth

GetWindowsLiveTokens ( string code, string redirectUrl ) : Microsoft.Research.DataOnboarding.RepositoryAdapters.SkyDrive.OAuthToken

Makes Rest call to Retreive the AccessToken and RefreshToken

HasOAuthCode ( ) : bool

Checks if the param "code" exists in the questring params

Method Details

WindowsLiveAuthorizationController() public method

Initializes a new instance of the WindowsLiveAuthorizationController class.
public WindowsLiveAuthorizationController ( ) : Microsoft.Research.DataOnboarding.RepositoryAdapters.SkyDrive
return Microsoft.Research.DataOnboarding.RepositoryAdapters.SkyDrive