Page Contents

Home > @loopback/authentication > AuthenticationOptions

AuthenticationOptions interface

Options for authentication component

Signature:

export interface AuthenticationOptions 

Properties

Property Modifiers Type Description
defaultMetadata?   AuthenticationMetadata[] (Optional) Default authentication metadata if a method or class is not decorated with @authenticate. If not set, no default authentication will be enforced for those methods without authentication metadata.
failOnError?   boolean (Optional) This flag allows an authentication strategy to abort the authentication by throwing an error if failOnError is set to true. By default, the authentication process continues to the next one even when a strategy throws an error. If one of other strategies succeed, the error will be discarded.