---
lang: en
title: 'API docs: authorization.authorize'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/authorization
permalink: /doc/en/lb4/apidocs.authorization.authorize.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/authorization](./authorization.md) &gt; [authorize](./authorization.authorize.md)

## authorize namespace

**Signature:**

```typescript
export declare namespace authorize 
```

## Functions

<table><thead><tr><th>

Function


</th><th>

Description


</th></tr></thead>
<tbody><tr><td markdown="1">

[allow(roles)](./authorization.authorize.allow.md)


</td><td markdown="1">

Shortcut to configure allowed roles


</td></tr>
<tr><td markdown="1">

[allowAll()](./authorization.authorize.allowall.md)


</td><td markdown="1">

Allows all


</td></tr>
<tr><td markdown="1">

[allowAllExcept(roles)](./authorization.authorize.allowallexcept.md)


</td><td markdown="1">

Allow all but the given roles


</td></tr>
<tr><td markdown="1">

[allowAuthenticated()](./authorization.authorize.allowauthenticated.md)


</td><td markdown="1">

Allow authenticated users


</td></tr>
<tr><td markdown="1">

[deny(roles)](./authorization.authorize.deny.md)


</td><td markdown="1">

Shortcut to configure denied roles


</td></tr>
<tr><td markdown="1">

[denyAll()](./authorization.authorize.denyall.md)


</td><td markdown="1">

Deny all


</td></tr>
<tr><td markdown="1">

[denyAllExcept(roles)](./authorization.authorize.denyallexcept.md)


</td><td markdown="1">

Deny all but the given roles


</td></tr>
<tr><td markdown="1">

[denyUnauthenticated()](./authorization.authorize.denyunauthenticated.md)


</td><td markdown="1">

Deny unauthenticated users


</td></tr>
<tr><td markdown="1">

[scope(scopes)](./authorization.authorize.scope.md)


</td><td markdown="1">

Shortcut to specify access scopes


</td></tr>
<tr><td markdown="1">

[skip()](./authorization.authorize.skip.md)


</td><td markdown="1">

Skip authorization


</td></tr>
<tr><td markdown="1">

[vote(voters)](./authorization.authorize.vote.md)


</td><td markdown="1">

Shortcut to configure voters


</td></tr>
</tbody></table>


