OAuthHttpClient.AuthorizeAsync Method
Namespace: Microsoft.VisualStudio.Services.OAuth.Client
Assembly: Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)
Syntax
'Declaration
Public Function AuthorizeAsync ( _
clientId As String, _
responseType As String, _
redirectUri As String, _
scope As String, _
state As String, _
userState As Object _
) As Task(Of AuthorizationResponse)
public Task<AuthorizationResponse> AuthorizeAsync(
string clientId,
string responseType,
string redirectUri,
string scope,
string state,
Object userState
)
public:
Task<AuthorizationResponse^>^ AuthorizeAsync(
String^ clientId,
String^ responseType,
String^ redirectUri,
String^ scope,
String^ state,
Object^ userState
)
member AuthorizeAsync :
clientId:string *
responseType:string *
redirectUri:string *
scope:string *
state:string *
userState:Object -> Task<AuthorizationResponse>
public function AuthorizeAsync(
clientId : String,
responseType : String,
redirectUri : String,
scope : String,
state : String,
userState : Object
) : Task<AuthorizationResponse>
Parameters
- clientId
Type: System.String
- responseType
Type: System.String
- redirectUri
Type: System.String
- scope
Type: System.String
- state
Type: System.String
- userState
Type: System.Object
Return Value
Type: System.Threading.Tasks.Task<AuthorizationResponse>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.