Hemi JavaScript Framework

Hemi.web.security

Description

Utilities for exploit mitigation.

static Hemi.web.security

version

A utility class for providing client support for exploit mitigation (requires corresponding server-side support).

Index

Property Index

Method Index

Properties

PageTickets

Array of tickets included with the Web page. Tickets should be included for server-side requests requiring the presence of a ticket.

Syntax

array = Hemi.web.security.PageTickets

Methods

AddPageTicket

Adds a new page ticket to the PageTickets array. Used to reduce CSRF exploit potential. A page ticket is a guid stored with the session, optionally for a specific server resource, and which may be required to complete an action. Refer to the Hemi/Components/component.session.xml component, Account Manager 4 project, and Core Web project for a reference implementation.

Syntax

void AddPageTicket( sId, sUri )

Parameters

GetSession

Returns any session object added to the registry. Hemi includes the Session component for use with Account Manager 4. This can easily be updated to fit any desired server configuration.

Syntax

oSession = GetSession( )

Returns

oSession as object: Returns the session object from the registry.

IsAuthenticated

Uses the Session Component to determine whether the current session has been authenticated.

Syntax

bAuth = IsAuthenticated( )

Returns

bAuth as boolean: Returns a bit indicating whether the session includes an authentication bit.