class Warden::Proxy

def authenticate(*args)

Experimental RBS support (using type sampling data from the type_fusion project).

def authenticate: (*Array[Hash, scope, Symbol] args) -> untyped

This signature was generated using 2 samples from 1 application.

:api: public

env['warden'].authenticate(:password, :basic, :scope => :sudo)
Example:

opts - an options hash that contains the :scope of the user to check
args - a list of symbols (labels) that name the strategies to attempt
Parameters:

When scope is not specified, the default_scope is assumed.
This does not halt the flow of control and is a passive attempt to authenticate only
If there is already a user logged in for a given scope, the strategies are not run
Run the authentication strategies for the given strategies.
def authenticate(*args)
  user, _opts = _perform_authentication(*args)
  user
end