Webanizr Logo
Open / sluit menu
Module authentication

Last change: July 30, 2020

Current version: 1.3.1

The authentication checks whether the authentication tokens on the website are present for a specific usermode, and can process authentication data to the authentication api.

Future versions will support the use of two factor authentication. 

webanizr.collect('authentication', parameters, callack);

webanizr.send('authentication', data, parameters, callack);

collect

parameters

The authentication module accepts the following parameters:

type__action

The action for collecting data. (currently supports 'get' and 'all')

  • get: based on the usermode in the parameter, returns the token if it is a definitive token.
  • all: returns all succesfull logged in tokens.

usermode__login

The usermode to log in. One of website, cms or webanizr. (only required by action 'get')

callback

The function to call with the token.

send

data

The data to send to the authentication api

parameters

The authentication module accepts the following parameters:

usermode__login

The usermode to log in. One of website, cms or webanizr.

callback

The callback to call after the authentication result is processed.

Changelog

  • July 30, 2020: 1.3.1 - Processing of login is now assynchronised to allow cookies to be set
  • July 12, 2020: 1.1.0 - Now sets webanizr var status__user to known after login
  • January 16, 2020: 1.0.3 - updated dependency on sendToAPI to 1.3.2
  • January 15, 2020: 1.0.2 - updated dependency on myIndexedDB to 1.0.2
  • January 13, 2020: 1.0.1 - collects supports different tasks
  • January 8, 2020: 1.0.0 - first version of the module