C# 클래스 Google.Apis.Auth.OAuth2.Mvc.AuthorizationCodeMvcApp

Thread-safe OAuth 2.0 authorization code flow for a MVC web application that persists end-user credentials.
상속: Google.Apis.Auth.OAuth2.Web.AuthorizationCodeWebApp
파일 보기 프로젝트 열기: Gainedge/BetterExplorer 1 사용 예제들

공개 메소드들

메소드 설명
AuthorizationCodeMvcApp ( Controller controller, FlowMetadata flowData ) : System

Constructs a new authorization code MVC app using the given controller and flow data.

AuthorizeAsync ( CancellationToken taskCancellationToken ) : Task

Asynchronously authorizes the installed application to access user's protected data. It gets the user identifier by calling to Google.Apis.Auth.OAuth2.Mvc.FlowMetadata.GetUserId and then calls to Google.Apis.Auth.OAuth2.AuthorizationCodeWebApp.AuthorizeAsync.

메소드 상세

AuthorizationCodeMvcApp() 공개 메소드

Constructs a new authorization code MVC app using the given controller and flow data.
public AuthorizationCodeMvcApp ( Controller controller, FlowMetadata flowData ) : System
controller Controller
flowData FlowMetadata
리턴 System

AuthorizeAsync() 공개 메소드

Asynchronously authorizes the installed application to access user's protected data. It gets the user identifier by calling to Google.Apis.Auth.OAuth2.Mvc.FlowMetadata.GetUserId and then calls to Google.Apis.Auth.OAuth2.AuthorizationCodeWebApp.AuthorizeAsync.
public AuthorizeAsync ( CancellationToken taskCancellationToken ) : Task
taskCancellationToken System.Threading.CancellationToken Cancellation token to cancel an operation
리턴 Task