Authentication Update

We have a set of helpers that allow Contact based authentication in a website, these allow us to build out custom portals. A single token was used to identify the contact. This meant that you couldn't be logged in as more than one contact simultaneously.

To address this, we've added a new tokenName parameter to the authentication helpers.

    Public Function UserMatches(
            Optional viewId As String = Nothing,
            Optional condition As ConditionMeta = Nothing,
            Optional savedFilters() As String = Nothing,
            Optional tokenName As String = Nothing
        ) As Boolean

    Public Function IsLoggedIn(
            Optional viewId As String = Nothing,
            Optional condition As ConditionMeta = Nothing,
            Optional savedFilters() As String = Nothing,
            Optional redirectUrl As String = Nothing,
            Optional tokenName As String = Nothing) As Boolean

    Public Function UserRecord(
            Optional viewId As String = Nothing,
            Optional condition As ConditionMeta = Nothing,
            Optional savedFilters() As String = Nothing,
            Optional fields() As String = Nothing,
            Optional tokenName As String = Nothing) As EngineRecord

    Public Function UserDetail(
            Optional viewId As String = Nothing,
            Optional condition As ConditionMeta = Nothing,
            Optional savedFilters() As String = Nothing,
            Optional fields() As String = Nothing,
            Optional tokenName As String = Nothing,
            Optional template As HelperTemplate(Of EngineRecord) = Nothing
        ) As HelperResult

    Public Function Login(
            username As String,
            password As String,
            rememberMe As Boolean,
            Optional viewId As String = Nothing,
            Optional condition As ConditionMeta = Nothing,
            Optional savedFilters() As String = Nothing,
            Optional tokenName As String = Nothing) As Boolean

    Public Sub Logout(Optional tokenName As String = Nothing)

    Public Function LoginForm(
            Optional viewId As String = Nothing,
            Optional condition As ConditionMeta = Nothing,
            Optional savedFilters() As String = Nothing,
            Optional template As HelperTemplate(Of LoginFormItem) = Nothing,
            Optional tokenName As String = Nothing) As HelperResult

    Public Function LoginAs(
        Optional viewId As String = Nothing,
        Optional condition As ConditionMeta = Nothing,
        Optional savedFilters() As String = Nothing,
        Optional tokenName As String = Nothing
    ) As HelperResult