Skip to main content

ValidateIsAuthenticatedAttribute

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public class ValidateIsAuthenticatedAttribute : ValidateRequestAttribute, _Attribute, IValidateRule, IReflectAttributeConverter

Inherited Properties

AllConditions

View Source
Declaration
public string[] AllConditions { get; set; }

AnyConditions

View Source
Declaration
public string[] AnyConditions { get; set; }

Condition

Boolean #Script Code Expression to Test ARGS:

  • Request: IRequest
  • dto: Request DTO
  •  it: Request DTO
View Source
Declaration
public string Condition { get; set; }

Conditions

Combine multiple conditions

View Source
Declaration
public string[] Conditions { get; set; }

ErrorCode

Custom ErrorCode to return

View Source
Declaration
public string ErrorCode { get; set; }

Message

Custom Error Message to return

  • {PropertyName}
  • {PropertyValue}
View Source
Declaration
public string Message { get; set; }

StatusCode

Custom Status Code to return when invalid

View Source
Declaration
public int StatusCode { get; set; }

Validator

Script Expression to create an IPropertyValidator registered in Validators.Types

View Source
Declaration
public string Validator { get; set; }

Inherited Methods

ToReflectAttribute()

View Source
Declaration
public ReflectAttribute ToReflectAttribute()
Returns

ServiceStack.ReflectAttribute

Implements