OAuthAuthorizationServerProvider.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
public virtual Task AuthorizeEndpoint(
OAuthAuthorizeEndpointContext context
)
public:
virtual Task^ AuthorizeEndpoint(
OAuthAuthorizeEndpointContext^ context
)
abstract AuthorizeEndpoint :
context:OAuthAuthorizeEndpointContext -> Task
override AuthorizeEndpoint :
context:OAuthAuthorizeEndpointContext -> Task
Public Overridable Function AuthorizeEndpoint (
context As OAuthAuthorizeEndpointContext
) As Task
Parameters
context
Type: Microsoft.Owin.Security.OAuth.OAuthAuthorizeEndpointContextThe context of the event carries information in and results out.
Return Value
Type: System.Threading.Tasks.Task
Task to enable asynchronous execution
Implements
IOAuthAuthorizationServerProvider.AuthorizeEndpoint(OAuthAuthorizeEndpointContext)
See Also
OAuthAuthorizationServerProvider Class
Microsoft.Owin.Security.OAuth Namespace
Return to top