@loopback/docs
Version:
Documentation for LoopBack 4
36 lines (25 loc) • 1.59 kB
Markdown
---
lang: en
title: 'API docs: authorization.authorizationmetadata'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/authorization
permalink: /doc/en/lb4/apidocs.authorization.authorizationmetadata.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authorization](./authorization.md) > [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 |
| [skip](./authorization.authorizationmetadata.skip.md) | <code>boolean</code> | A flag to skip authorization |
| [voters](./authorization.authorizationmetadata.voters.md) | <code>(Authorizer | BindingAddress<Authorizer>)[]</code> | Voters that help make the authorization decision |