View Source
Class UmbracoAuthorizedHttpHandler
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
public abstract class UmbracoAuthorizedHttpHandler : UmbracoHttpHandler, IHttpHandler
Constructors
View Source
UmbracoAuthorizedHttpHandler()
Declaration
protected UmbracoAuthorizedHttpHandler()
View Source
UmbracoAuthorizedHttpHandler(IUmbracoContextAccessor, UmbracoHelper, ServiceContext, IProfilingLogger)
Declaration
protected UmbracoAuthorizedHttpHandler(IUmbracoContextAccessor umbracoContextAccessor, UmbracoHelper umbracoHelper, ServiceContext service, IProfilingLogger plogger)
Parameters
Methods
View Source
AuthorizeRequest(Boolean)
Returns true if there is a valid logged in user and that ssl is enabled if required
Declaration
protected bool AuthorizeRequest(bool throwExceptions = false)
Parameters
Type |
Name |
Description |
System.Boolean |
throwExceptions |
true if an exception should be thrown if authorization fails
|
Returns
Type |
Description |
System.Boolean |
|
View Source
AuthorizeRequest(String, Boolean)
Validates the user for access to a certain application
Declaration
protected bool AuthorizeRequest(string app, bool throwExceptions = false)
Parameters
Type |
Name |
Description |
System.String |
app |
The application alias.
|
System.Boolean |
throwExceptions |
true if an exception should be thrown if authorization fails
|
Returns
Type |
Description |
System.Boolean |
|
View Source
UserHasAppAccess(String, String)
Checks if the specified user by username as access to the app
Declaration
protected bool UserHasAppAccess(string app, string username)
Parameters
Type |
Name |
Description |
System.String |
app |
|
System.String |
username |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
UserHasAppAccess(String, IUser)
Checks if the specified user as access to the app
Declaration
protected bool UserHasAppAccess(string app, IUser user)
Parameters
Type |
Name |
Description |
System.String |
app |
|
IUser |
user |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
ValidateCredentials(String, String)
Checks if the username/password credentials are valid
Declaration
protected bool ValidateCredentials(string username, string password)
Parameters
Type |
Name |
Description |
System.String |
username |
|
System.String |
password |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
ValidateUserContextId(String)
Checks if the umbraco context id is valid
Declaration
protected bool ValidateUserContextId(string currentUmbracoUserContextId)
Parameters
Type |
Name |
Description |
System.String |
currentUmbracoUserContextId |
|
Returns
Type |
Description |
System.Boolean |
|