Class GoogleScopedAuthorizeAttribute (1.68.0)

public class GoogleScopedAuthorizeAttribute : AuthorizeAttribute, IAuthorizeData

Specifies that the class or method that this attribute is applied to requires the specified authorization, which can include the incremental addition of Google scopes.

Inheritance

object > Attribute > AuthorizeAttribute > GoogleScopedAuthorizeAttribute

Implements

IAuthorizeData

Namespace

Google.Apis.Auth.AspNetCore3

Assembly

Google.Apis.Auth.AspNetCore3.dll

Constructors

GoogleScopedAuthorizeAttribute(params string[])

public GoogleScopedAuthorizeAttribute(params string[] scopes)

Construct an instance of GoogleScopedAuthorizeAttribute.

Parameter
Name Description
scopes string

The Google auth scopes required by the class or method to which this attribute is applied.

Properties

Scopes

public IReadOnlyList<string> Scopes { get; set; }

Get or set the Google auth scopes required by the class or method to which this attribute is applied.

Property Value
Type Description
IReadOnlyListstring

Extension Method