Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FormsAuthenticationService

  • Globals
  • FormsAuthenticationService

Authentication Service class for using Forms authentication through OData Actions

Hierarchy

  • FormsAuthenticationService

Implements

Index

Constructors

constructor

Properties

currentUser

currentUser: ObservableValue<User> = new ObservableValue<User>(ConstantContent.VISITOR_USER)

Observable value that will update with the current user on user change

Private repository

repository: Repository

state

state: ObservableValue<LoginState> = new ObservableValue(LoginState.Unknown)

This observable indicates the current state of the service

LoginState.Pending

Private statusLock

statusLock: Semaphore = new Semaphor(1)

Private userLoadOptions

userLoadOptions: ODataParams<User>

Methods

checkForUpdate

  • checkForUpdate(): Promise<boolean>

dispose

  • dispose(): Promise<void>

getCurrentUser

  • getCurrentUser(): Promise<User>

login

  • login(username: string, password: string): Promise<boolean>

logout

  • logout(): Promise<boolean>

Static Setup

Generated using TypeDoc