This namespace contains all authentication related behavior.
@since 2.0.0
| EXTERNAL | = | '$external'.freeze |
The external database name.
@since 2.0.0 |
|
| GET_NONCE | = | { getnonce: 1 }.freeze |
Constant for the nonce command.
@since 2.0.0 |
|
| NONCE | = | 'nonce'.freeze |
Constant for the nonce field.
@since 2.0.0 |
|
| SOURCES | = | { mongodb_cr: CR, mongodb_x509: X509, plain: LDAP, scram: SCRAM, scram256: SCRAM, } |
Map the symbols parsed from the URI connection
string to strategies.
@since 2.0.0 |
Get the authorization strategy for the provided auth mechanism.
@example Get the strategy.
Auth.get(user)
@param [ Auth::User ] user The user object.
@return [ CR, X509, LDAP, Kerberos ] The auth strategy.
@since 2.0.0