---
lang: en
title: 'API docs: authorization.authorizationmetadata'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.authorization.authorizationmetadata.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/authorization](./authorization.md) &gt; [AuthorizationMetadata](./authorization.authorizationmetadata.md)

## AuthorizationMetadata interface

Authorization metadata supplied via `@authorize` decorator

<b>Signature:</b>

```typescript
export interface AuthorizationMetadata 
```

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [allowedRoles](./authorization.authorizationmetadata.allowedroles.md) | <code>string[]</code> | Roles that are allowed access |
|  [deniedRoles](./authorization.authorizationmetadata.deniedroles.md) | <code>string[]</code> | Roles that are denied access |
|  [resource](./authorization.authorizationmetadata.resource.md) | <code>string</code> | Name of the resource, default to the method name |
|  [scopes](./authorization.authorizationmetadata.scopes.md) | <code>string[]</code> | Define the access scopes |
|  [voters](./authorization.authorizationmetadata.voters.md) | <code>(Authorizer &#124; BindingAddress&lt;Authorizer&gt;)[]</code> | Voters that help make the authorization decision |


