Table of Contents

Class AuthenticatedOnlyAttribute

Namespace
Magicalizer.Api.Dto.Abstractions
Assembly
Magicalizer.Api.Dto.Abstractions.dll

Authentication rule of a DTO controller: the user only has to be authenticated to call the API methods.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class AuthenticatedOnlyAttribute : Attribute
Inheritance
AuthenticatedOnlyAttribute
Inherited Members

Constructors

AuthenticatedOnlyAttribute(HttpMethod)

Creates an authentication rule for the HTTP method.

public AuthenticatedOnlyAttribute(HttpMethod httpMethod = HttpMethod.Any)

Parameters

httpMethod HttpMethod

HTTP method the rule applies to (any by default).

Properties

HttpMethod

HTTP method the rule applies to.

public HttpMethod HttpMethod { get; }

Property Value

HttpMethod