Auth
Gathers Netuno's authentication operations, providers, encryption, and others.
if (_auth.isJWT() && _auth.isAdmin()) {
_log.info('Administrator logged with JWT Token!')
}
allProvidersConfig
_auth.allProvidersConfig() : Values
Description
Gets all the authentication providers configuration.
How To Use
// Gets the Authentication Providers Settings.
const allProvidersConfig = _auth.allProvidersConfig()
_log.info('Authentication Providers Configuration', allProvidersConfig)
Return
( Values )
All authentication providers settings.
attempt
_auth.attempt() : boolean
Return
( boolean )
attemptReject
_auth.attemptReject() : boolean
Return
( boolean )
_auth.attemptReject(reject: boolean) : Auth
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
reject | boolean |