Authentication

Then the magic appears ! There's no authentication form for Sana ! Any user accessing to the chat have to be already logged in, either on the hosting application or on Rofim. Sana will use the user credential to create a new session.

Single Sign-on

Sana uses sso to authenticate the user on the chat. You can provide your own identity provider in the Sana component property ssoname as follows :

<!DOCTYPE html>
<html ...>
<body>
  <div id="chat">
    <sana-widget
      locale="en-GB"
      displaymode="LIGHTBOX"
			ssoname="myOwnIDP"
    />
  </div>
</body>

To enable recycling the SSO, you can also provide an externaluserid, this will significantly improve the user experience when the device is used by several users.

<!DOCTYPE html>
<html ...>
<body>
  <div id="chat">
    <sana-widget
      locale="en-GB"
      displaymode="LIGHTBOX"
			externaluserid="user1"
    />
  </div>
</body>