@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
96 lines (48 loc) • 1.8 kB
Markdown
---
lang: en
title: 'API docs: authentication.authmetadataprovider'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/authentication
permalink: /doc/en/lb4/apidocs.authentication.authmetadataprovider.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authentication](./authentication.md) > [AuthMetadataProvider](./authentication.authmetadataprovider.md)
## AuthMetadataProvider class
Provides authentication metadata of a controller method
**Signature:**
```typescript
export declare class AuthMetadataProvider implements Provider<AuthenticationMetadata[] | undefined>
```
**Implements:** [Provider](./context.provider.md)<!-- --><[AuthenticationMetadata](./authentication.authenticationmetadata.md)<!-- -->\[\] \| undefined>
## Example
`context.bind('authentication.operationMetadata').toProvider(AuthMetadataProvider)`
## Constructors
<table><thead><tr><th>
Constructor
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[(constructor)(controllerClass, methodName, options)](./authentication.authmetadataprovider._constructor_.md)
</td><td markdown="1">
</td><td markdown="1">
Constructs a new instance of the `AuthMetadataProvider` class
</td></tr>
</tbody></table>
## Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[value()](./authentication.authmetadataprovider.value.md)
</td><td markdown="1">
</td><td markdown="1">
</td></tr>
</tbody></table>