Class: ChainAuth

vertx-auth-common-js/chain_auth~ ChainAuth

new ChainAuth()

Chain several auth providers as if they were one. This is useful for cases where one want to authenticate across several providers, for example, database and fallback to passwd file.
Source:

Methods

append(other) → {ChainAuth}

Appends a auth provider to the chain.
Parameters:
Name Type Description
other AuthProvider auth provider
Source:
Returns:
self
Type
ChainAuth

clear()

Clears the chain.
Source:

remove(other) → {boolean}

Removes a provider from the chain.
Parameters:
Name Type Description
other AuthProvider provider to remove
Source:
Returns:
true if provider was removed, false if non existent in the chain.
Type
boolean