init_sso

4.0.9

Tag {init_sso} allows to view all Single Sign On applications.

 Parameters

  • name - variable name where the returned data is saved. Default value is "sso".

Attributes

  • id - SSO application ID
  • app_name - the name of the application
  • user_value - the username for the application
  • pwd_value - the password for the application
  • user_registered  - boolean value showing if the currently logged in user is registered to that SSO application (1) or not (0).
Example
{init_sso name="sso_apps"}
{if $sso_apps > 0}
{********** TITLE **********}
<h1>{sysword word="applications login info" type="saurus4"}</h1>

<table>
    <tr>
        <td>{sysword word="application name" type="saurus4"}</td>
        <td>{sysword word="username" type="saurus4"}</td>
        <td>{sysword word="password" type="editor"}</td>
    </tr>
    {********** PRINT SSO NAMES **********}
    {foreach from=$sso_apps item=sso}
    <tr>
        <td><input type="checkbox" name="sso[{$sso->id}][id]" value="{$sso->id}" {if $sso->user_registered == 1} checked="checked"{/if}>{$sso->app_name}</td>
        <td><input type="text" name="sso[{$sso->id}][user_value]" value="{$sso->user_value}"></td>
        <td><input type="password" name="sso[{$sso->id}][pwd_value]" value="{if $sso->pwd_value}******{/if}"></td>
    </tr>
    {/foreach}
</table>
{/if} {* SSO *}