Object -
http
:
BearerAuthHandler
Representation of the Bearer Auth header handler for both inbound and outbound HTTP traffic.
Constructor
__init
(InboundAuthProvider | OutboundAuthProvider authProvider)
- authProvider InboundAuthProvider | OutboundAuthProvider
-
The
auth:InboundAuthProvider
instance or theauth:OutboundAuthProvider
instance
Methods
Fields
- authProvider InboundAuthProvider | OutboundAuthProvider
-
The
InboundAuthProvider
instance or theOutboundAuthProvider
instance
Parameters
- req Request
-
The
http:Request
instance
-
Return Type
(boolean) true
if it can be authenticated or elsefalse
Parameters
- req Request
-
The
http:Request
instance
-
Return Type
(boolean | AuthenticationError) true
if authenticated successfully,false
otherwise, or else anhttp:AuthenticationError
in case of an error
Parameters
- req Request
-
The
http:Request
instance
-
Return Type
(Request | AuthenticationError) The updated
http:Request
instance or else anhttp:AuthenticationError
in case of an error
-
Return Type
(Request | AuthenticationError | ()) The updated
http:Request
instance, anhttp:AuthenticationError
in case of an error, or else()
if nothing is to be returned