Suoranta.EnterpriseLib.Web - Developer API

OwinHost..::..ConfigureAuth Method

Configure Owin authentication and authorization for Owin AppBuilder

Namespace:  Suoranta.EnterpriseLib.Web
Assembly:  Suoranta.EnterpriseLib.Web (in Suoranta.EnterpriseLib.Web.dll)

Syntax


protected virtual void ConfigureAuth(
	IAppBuilder app
)

Parameters

app
Type: IAppBuilder

Remarks


Configuration is called externally and it calls this method.

Authorization infrastructure is not built into Asp.Net in .Net Framework. Instead, backport of Asp.Net Core authorization architecture is used. Related packages:

  • Microsoft.Owin.Security.Authorization
  • Microsoft.Owin.Security.Authorization.Mvc
  • Microsoft.Owin.Security.Authorization.WebApi

Use ResourceAuthorizeAttribute to define policies to be applied to a controller or an action.