Compartir a través de


IOAuthAuthorizationServerProvider.AuthorizeEndpoint Method (OAuthAuthorizeEndpointContext)

 

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

Task AuthorizeEndpoint(
    OAuthAuthorizeEndpointContext context
)
Task^ AuthorizeEndpoint(
    OAuthAuthorizeEndpointContext^ context
)
abstract AuthorizeEndpoint : 
        context:OAuthAuthorizeEndpointContext -> Task
Function AuthorizeEndpoint (
    context As OAuthAuthorizeEndpointContext
) As Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

Task to enable asynchronous execution

See Also

IOAuthAuthorizationServerProvider Interface
Microsoft.Owin.Security.OAuth Namespace

Return to top