Method | Description | |
---|---|---|
BasicAuthenticationFilter ( ) : System | ||
BasicAuthenticationFilter ( bool active ) : System |
Overriden constructor to allow explicit disabling of this filter's behavior. Pass false to disable (same as no filter but declarative)
|
|
OnAuthorization ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void |
Override to Web API filter method to handle Basic Auth check
|
Method | Description | |
---|---|---|
OnAuthorizeUser ( string username, string password, System.Web.Http.Controllers.HttpActionContext actionContext ) : bool |
Base implementation for user authentication - you probably will want to override this method for application specific logic. The base implementation merely checks for username and password present and set the Thread principal. Override this method if you want to customize Authentication and store user data as needed in a Thread Principle or other Request specific storage.
|
|
ParseAuthorizationHeader ( System.Web.Http.Controllers.HttpActionContext actionContext ) : |
Parses the Authorization header and creates user credentials
|
Method | Description | |
---|---|---|
Challenge ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void |
Send the Authentication Challenge request
|
public BasicAuthenticationFilter ( ) : System | ||
return | System |
public BasicAuthenticationFilter ( bool active ) : System | ||
active | bool | |
return | System |
public OnAuthorization ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void | ||
actionContext | System.Web.Http.Controllers.HttpActionContext | |
return | void |
protected OnAuthorizeUser ( string username, string password, System.Web.Http.Controllers.HttpActionContext actionContext ) : bool | ||
username | string | |
password | string | |
actionContext | System.Web.Http.Controllers.HttpActionContext | |
return | bool |
protected ParseAuthorizationHeader ( System.Web.Http.Controllers.HttpActionContext actionContext ) : |
||
actionContext | System.Web.Http.Controllers.HttpActionContext | |
return |