OAuthAuthorizationServerProvider.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
Public Overridable Function AuthorizeEndpoint ( _
    context As OAuthAuthorizeEndpointContext _
) As Task
'Usage
Dim instance As OAuthAuthorizationServerProvider 
Dim context As OAuthAuthorizeEndpointContext 
Dim returnValue As Task 

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

Parameters

Return Value

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

Implements

IOAuthAuthorizationServerProvider.AuthorizeEndpoint(OAuthAuthorizeEndpointContext)

See Also

Reference

OAuthAuthorizationServerProvider Class

Microsoft.Owin.Security.OAuth Namespace