Page Contents

Home > @loopback/authentication > AuthMetadataProvider

AuthMetadataProvider class

Provides authentication metadata of a controller method

Signature:

export declare class AuthMetadataProvider implements Provider<AuthenticationMetadata[] | undefined> 

Implements: Provider<AuthenticationMetadata[] | undefined>

Example

context.bind('authentication.operationMetadata').toProvider(AuthMetadataProvider)

Constructors

Constructor Modifiers Description
(constructor)(controllerClass, methodName, options)   Constructs a new instance of the AuthMetadataProvider class

Methods

Method Modifiers Description
value()