Search
Preparing search index...
The search index is not available
@netgrif/components-core
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@netgrif/components-core
MockAuthenticationService
Class MockAuthenticationService
Hierarchy
AuthenticationService
MockAuthenticationService
Index
Constructors
constructor
Properties
_auth
_authenticated$
_config
_session
Service
_user
Transformer
sub
Session
IDENTIFICATION_
ATTRIBUTE
Accessors
authenticated$
is
Authenticated
Methods
login
logout
ng
On
Destroy
Constructors
constructor
new
Mock
Authentication
Service
(
_auth
:
AuthenticationMethodService
, _config
:
ConfigurationService
, _sessionService
:
SessionService
, _userTransformer
:
UserTransformer
)
:
MockAuthenticationService
Parameters
_auth:
AuthenticationMethodService
_config:
ConfigurationService
_sessionService:
SessionService
_userTransformer:
UserTransformer
Returns
MockAuthenticationService
Properties
Protected
_auth
_auth
:
AuthenticationMethodService
Protected
_authenticated$
_authenticated$
:
BehaviorSubject
<
boolean
>
Protected
_config
_config
:
ConfigurationService
Protected
_session
Service
_session
Service
:
SessionService
Protected
_user
Transformer
_user
Transformer
:
UserTransformer
Protected
sub
Session
sub
Session
:
Subscription
Static
Protected
Readonly
IDENTIFICATION_
ATTRIBUTE
IDENTIFICATION_
ATTRIBUTE
:
"id"
= 'id'
Accessors
authenticated$
get
authenticated$
(
)
:
Observable
<
boolean
>
Returns
Observable
<
boolean
>
is
Authenticated
get
isAuthenticated
(
)
:
boolean
Returns
boolean
Methods
login
login
(
credentials
:
Credentials
)
:
Observable
<
User
>
Parameters
credentials:
Credentials
Returns
Observable
<
User
>
logout
logout
(
)
:
Observable
<
object
>
Returns
Observable
<
object
>
ng
On
Destroy
ng
On
Destroy
(
)
:
void
Returns
void
Exports
Mock
Authentication
Service
constructor
_auth
_authenticated$
_config
_session
Service
_user
Transformer
sub
Session
IDENTIFICATION_
ATTRIBUTE
authenticated$
is
Authenticated
login
logout
ng
On
Destroy
Generated using
TypeDoc