OAuthAuthorizationServerProvider.OnAuthorizeEndpoint Property

 

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 Func<OAuthAuthorizeEndpointContext, Task> OnAuthorizeEndpoint { get; set; }
public:
property Func<OAuthAuthorizeEndpointContext^, Task^>^ OnAuthorizeEndpoint {
    Func<OAuthAuthorizeEndpointContext^, Task^>^ get();
    void set(Func<OAuthAuthorizeEndpointContext^, Task^>^ value);
}
member OnAuthorizeEndpoint : Func<OAuthAuthorizeEndpointContext, Task> with get, set
Public Property OnAuthorizeEndpoint As Func(Of OAuthAuthorizeEndpointContext, Task)

Property Value

Type: System.Func<OAuthAuthorizeEndpointContext, Task>

Returns Func<T, TResult>.

See Also

OAuthAuthorizationServerProvider Class
Microsoft.Owin.Security.OAuth Namespace

Return to top