Home Reference Source Repository
import ControllerAuthentication from 'rodan-client/js/Controllers/ControllerAuthentication.js'
public class | source

ControllerAuthentication

Extends:

js/Controllers/BaseController~BaseController → ControllerAuthentication

Controls authentication.

Method Summary

Public Methods
public

ajaxPrefilter(options: object)

AJAX prefilter associated with authentication.

public

Initializes the instance.

Public Methods

public ajaxPrefilter(options: object) source

AJAX prefilter associated with authentication.

This will make sure that the appropriate request headers for authentication are set on all AJAX requests to the server.

Params:

NameTypeAttributeDescription
options object

object.beforeSend (optional) is a function that takes in the XmlHTTPRequest before sending; this may be useful for doing pre-processing of AJAX requests

public initialize() source

Initializes the instance.

How authentication behaves depends on Configuration.SERVER_AUTHENTICATION_TYPE.