---
lang: en
title: 'API docs: authorization.authorizationcontext'
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.authorizationcontext.html
---

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

[Home](./index.md) &gt; [@loopback/authorization](./authorization.md) &gt; [AuthorizationContext](./authorization.authorizationcontext.md)

## AuthorizationContext interface

Request context for authorization

<b>Signature:</b>

```typescript
export interface AuthorizationContext 
```

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [invocationContext](./authorization.authorizationcontext.invocationcontext.md) | [InvocationContext](./context.invocationcontext.md) | Context for the invocation |
|  [principals](./authorization.authorizationcontext.principals.md) | [Principal](./security.principal.md)<!-- -->\[\] | An array of principals identified for the request - it should come from authentication |
|  [resource](./authorization.authorizationcontext.resource.md) | string | An name for the target resource to be accessed, such as <code>OrderController.prototype.cancelOrder</code> |
|  [roles](./authorization.authorizationcontext.roles.md) | [Role](./security.role.md)<!-- -->\[\] | An array of roles for principals |
|  [scopes](./authorization.authorizationcontext.scopes.md) | string\[\] | An array of scopes representing granted permissions - usually come from access tokens |


