C# 클래스 Microsoft.Research.DataOnboarding.WebApi.Api.WindowsLiveAuthorizationController

Class contains the methods to manage the Windows Live Authentication
상속: ApiController
파일 보기 프로젝트 열기: CDLUC3/dataup2 1 사용 예제들

공개 메소드들

메소드 설명
WindowsLiveAuthorizationController ( ) : Microsoft.Research.DataOnboarding.RepositoryAdapters.SkyDrive

Initializes a new instance of the WindowsLiveAuthorizationController class.

비공개 메소드들

메소드 설명
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

메소드 상세

WindowsLiveAuthorizationController() 공개 메소드

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