APIs

Show:

Manage user authentication and cookie creation and pass results back to app router

Constructor

AppAuth

() Object

Returns:

Object:

instantiated AppAuth

Methods

_applyLimitedAccess

(
  • i_navigationView
)

Apply limited access to application since user logged in with Pro account intp Lite Studio

Parameters:

  • i_navigationView Object

_authFailed

(
  • i_status
  • i_authMode
)

User authentication completed unsuccessfully

Parameters:

  • i_status String

    status message from remote mediaSERVER (could include warnings)

  • i_authMode String

    indicates if authentication was done via cookie or user input

_authPassed

(
  • i_user
  • i_pass
  • i_status
  • i_authMode
)

User authentication completed successfully

Parameters:

  • i_user String

    user name

  • i_pass String

    user password

  • i_status String

    status message from remote mediaSERVER (could include warnings)

  • i_authMode String

    indicates if authentication was done via cookie or user input

_authServer

(
  • i_user
  • i_pass
  • i_authMode
)

Process actual authentication against mediaSERVER

Parameters:

  • i_user String
  • i_pass String
  • i_authMode Number

_bakeCookie

(
  • i_crumb
)

Create cookie

Parameters:

  • i_crumb String

_breakCookie

(
  • i_user
  • i_pass
)
Object

Break encrypted cookie RC4 to user credentials

Parameters:

  • i_user String
  • i_pass String

Returns:

Object:

credentials

_encryptUserPass

(
  • i_user
  • i_pass
)

Create RC4 local encrypted cookie

Parameters:

  • i_user String
  • i_pass String

_loadCredentials

(
  • i_user
  • i_pass
)

Load user credentials from param or cookie or form data

Parameters:

  • i_user String
  • i_pass String

_loadPassedCredentials

() Object

Check if user / pass were passed in via params

Returns:

Object:

user and pass if passed in or undefined if none

authenticate

(
  • i_user
  • i_pass
)

Initiate user authentication against the Pepper db user credentials

Parameters:

  • i_user String
  • i_pass String

initialize

()

Constructor

Returns:

Unique clientId.

logout

()

Logout of application and delete saved local cookie