10.07.2015 Views

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

User STLinksInASP.asp TokenGenerator Servlet Sametime Servergetnot authenicated/authorizedlogin(userName, password)getToken(remote_user)tokendisplay pageget Sametime Links FileswriteSametimeApplet(remote_user,token, true)Figure 12-5 Sametime Links and ASPThe user requests to view the STLinksInASP.asp page, which has beenSametime-enabled. Since the page is access-protected by IIS, IIS will challengethe user to authenticate. The user then logs in with their user name andpassword for IIS. IIS authenticates them and then starts to dynamically generatethe ASP page.When generating the page, we first insert references to the Sametime Linksstylesheet and JavaScript files, and then we call the setSTLinksURL JavaScriptfunction. You will notice that we hardcoded the host name and directory in thepage. See Chapter 5 of the Sametime Links 3.1 Toolkit Developer's Guide andReference (see 2.2.1, “Sametime Software Development Kit (SDK)documentation” on page 22 for details on how to find this publication) for how tomake this more dynamic.Next, we open an HTTP connection to the TokenGenerator servlet to obtain theSametime token for the authenticated user. (We assume in our example that thisservlet has been protected so that only the IIS server can access it.) The code toaccomplish this is shown in Example 12-18 on page 354.Chapter 12. Ideas for customization and integration 353

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!