IOAuthAuthorizationServerProvider.AuthorizeEndpoint Method

Called at the final stage of an incoming Authorize endpoint request before the execution continues on to the web application component responsible for producing the html response. Anything present in the OWIN pipeline following the Authorization Server may produce the response for the Authorize page. If running on IIS any ASP.NET technology running on the server may produce the response for the Authorize page. If the web application wishes to produce the response directly in the AuthorizeEndpoint call it may write to the context.Response directly and should call context.RequestCompleted to stop other handlers from executing. If the web application wishes to grant the authorization directly in the AuthorizeEndpoint call it cay call context.OwinContext.Authentication.SignIn with the appropriate ClaimsIdentity and should call context.RequestCompleted to stop other handlers from executing.

Namespace:  Microsoft.Owin.Security.OAuth
Assembly:  Microsoft.Owin.Security.OAuth (in Microsoft.Owin.Security.OAuth.dll)

Syntax

'Declaration
Function AuthorizeEndpoint ( _
    context As OAuthAuthorizeEndpointContext _
) As Task
'Usage
Dim instance As IOAuthAuthorizationServerProvider 
Dim context As OAuthAuthorizeEndpointContext 
Dim returnValue As Task 

returnValue = instance.AuthorizeEndpoint(context)
Task AuthorizeEndpoint(
    OAuthAuthorizeEndpointContext context
)
Task^ AuthorizeEndpoint(
    OAuthAuthorizeEndpointContext^ context
)
abstract AuthorizeEndpoint : 
        context:OAuthAuthorizeEndpointContext -> Task
function AuthorizeEndpoint(
    context : OAuthAuthorizeEndpointContext
) : Task

Parameters

Return Value

Type: System.Threading.Tasks.Task
Task to enable asynchronous execution

See Also

Reference

IOAuthAuthorizationServerProvider Interface

Microsoft.Owin.Security.OAuth Namespace