AuthBackend: Create AuthBackend

Description Public fields Methods Note References See Also

Description

Creates AuthBackend class object.

Public fields

HTTPError

Class which raises HTTP errors.

Methods

Public methods


Method new()

Creates AuthBackend class object.

Usage
AuthBackend$new(FUN, auth_header_prefix)
Arguments
FUN

Authentication handler function.

auth_header_prefix

Authentication HTTP header prefix.


Method authenticate()

This placeholder. It must be implemented in the subclass.

Usage
AuthBackend$authenticate()

Method clone()

The objects of this class are cloneable with this method.

Usage
AuthBackend$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Note

This object is typically constructed via a derived classes, e.g. AuthBackendBasic or AuthBackendBearer.

References

falcon-auth

See Also

Other AuthBackend: AuthBackendBasic, AuthBackendBearer, AuthMiddleware


RestRserve documentation built on Jan. 13, 2021, 7:05 p.m.