AppAuth Class
_controllers\AppAuth.js:1
Manage user authentication and cookie creation and pass results back to app router
Constructor
AppAuth
()
Object
Returns:
instantiated AppAuth
Item Index
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
Stringstatus message from remote mediaSERVER (could include warnings)
-
i_authMode
Stringindicates 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
Stringuser name
-
i_pass
Stringuser password
-
i_status
Stringstatus message from remote mediaSERVER (could include warnings)
-
i_authMode
Stringindicates 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
Break encrypted cookie RC4 to user credentials
Parameters:
-
i_user
String -
i_pass
String
Returns:
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:
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