Search
Preparing search index...
The search index is not available
sn-client-js
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Mocks
MockAuthService
Class MockAuthService
Hierarchy
MockAuthService
Implements
IAuthenticationService
Index
Constructors
constructor
Properties
Current
User
State
Subject
Valid
Password
Valid
User
Name
Accessors
Current
State
State
Methods
Check
For
Update
Get
Oauth
Provider
Handle
Authentication
Response
Login
Logout
Set
Oauth
Provider
Constructors
constructor
new
Mock
Auth
Service
(
)
:
MockAuthService
Returns
MockAuthService
Properties
Current
User
Current
User
:
string
= "BuiltIn\Visitor"
State
Subject
State
Subject
:
BehaviorSubject
<
LoginState
>
Valid
Password
Valid
Password
:
string
Valid
User
Name
Valid
User
Name
:
string
Accessors
Current
State
get
CurrentState
(
)
:
LoginState
Returns
LoginState
State
get
State
(
)
:
Observable
<
LoginState
>
Returns
Observable
<
LoginState
>
Methods
Check
For
Update
Check
For
Update
(
)
:
Observable
<
boolean
>
Returns
Observable
<
boolean
>
Get
Oauth
Provider
Get
Oauth
Provider<T>
(
providerType
:
object
)
:
T
Type parameters
T
:
IOauthProvider
Parameters
providerType:
object
constructor
:
function
new __type
(
...
args
:
any
[]
)
:
T
Parameters
Rest
...
args:
any
[]
Returns
T
Returns
T
Handle
Authentication
Response
Handle
Authentication
Response
(
response
:
LoginResponse
, resp
?:
boolean
)
:
boolean
Parameters
response:
LoginResponse
Default value
resp:
boolean
= true
Returns
boolean
Login
Login
(
username
:
string
, password
:
string
)
:
Observable
<
boolean
>
Parameters
username:
string
password:
string
Returns
Observable
<
boolean
>
Logout
Logout
(
)
:
Observable
<
boolean
>
Returns
Observable
<
boolean
>
Set
Oauth
Provider
Set
Oauth
Provider<T>
(
provider
:
T
)
:
void
Type parameters
T
:
IOauthProvider
Parameters
provider:
T
Returns
void
Globals
Internals
Authentication
Collection
Complex
Types
Config
Content
Content
Serializer
Content
Types
Control
Mapper
Enums
Field
Settings
Http
Providers
OData
Api
OData
Helper
Query
Repository
Resources
Retrier
Schemas
Security
sn-
client-
js
Externals
Mocks
Mock
Auth
Service
constructor
Current
User
State
Subject
Valid
Password
Valid
User
Name
Current
State
State
Check
For
Update
Get
Oauth
Provider
Handle
Authentication
Response
Login
Logout
Set
Oauth
Provider
Mock
Http
Provider
Mock
Repository
Mock
Response
Mock
Token
Factory
Generated using
TypeDoc