How to log out of a SAS BI portlet embedded in an iframe in another website?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 14
Accepted Solution

How to log out of a SAS BI portlet embedded in an iframe in another website?

Hello, I am wondering how to log out of a SAS BI portlet that will be embedded in an iframe in another website.  My thought is to simply create a new 'log off' link, but I have not had success yet.  I have tried adding a hyperlink via Static Content: Label to a generic log-on page (e.g., http://serverSmiley Tongueort/SASLogon/index.jsp?_sasapp=BI+Dashboard+4.3) or a similar address with a session ID from a previous session and a different user name, etc.  That approach opens a new log-on screen page, but does not actually log the user out of the embedded portlet.  Closing the browser does not work either.  Any suggestions would be greatly appreciated!


Accepted Solutions
Solution
‎11-18-2013 02:12 PM
Occasional Contributor
Posts: 14

Re: How to log out of a SAS BI portlet embedded in an iframe in another website?

I figured this out, so I thought I would post what worked for me in case anyone else is hoping to do the same thing.  If you are working with BI Dashboard, it turns out the URL you need to link to is "http://serverSmiley Tongueort/SASBIDashboard/Logoff".  I assume that you could substitute other applications (e.g., SASStoredProcess) to do the same thing in other situations.  So, I'm simply including a 'Log Off' hyperlink to the URL above in the website that contains the embedded dashboard portlet in an iframe.

The HTML:

<a id="logoff" href="http://serverSmiley Tongueort/SASBIDashboard/Logoff" target="iframe1"><b>Log Off</b></a>

<iframe name="iframe1" src='http://serverSmiley Tongueort/SASBIDashboard/Director?_directive=PortletDisplayDashboard&dashboard=SBIP'>"

I learned how to create the SBIP, which needs to be customized for the end of the iframe dashboard link above, from the example on page 6 of this document:

http://support.sas.com/resources/papers/proceedings13/061-2013.pdf

If others have better solutions, please share!

View solution in original post


All Replies
Solution
‎11-18-2013 02:12 PM
Occasional Contributor
Posts: 14

Re: How to log out of a SAS BI portlet embedded in an iframe in another website?

I figured this out, so I thought I would post what worked for me in case anyone else is hoping to do the same thing.  If you are working with BI Dashboard, it turns out the URL you need to link to is "http://serverSmiley Tongueort/SASBIDashboard/Logoff".  I assume that you could substitute other applications (e.g., SASStoredProcess) to do the same thing in other situations.  So, I'm simply including a 'Log Off' hyperlink to the URL above in the website that contains the embedded dashboard portlet in an iframe.

The HTML:

<a id="logoff" href="http://serverSmiley Tongueort/SASBIDashboard/Logoff" target="iframe1"><b>Log Off</b></a>

<iframe name="iframe1" src='http://serverSmiley Tongueort/SASBIDashboard/Director?_directive=PortletDisplayDashboard&dashboard=SBIP'>"

I learned how to create the SBIP, which needs to be customized for the end of the iframe dashboard link above, from the example on page 6 of this document:

http://support.sas.com/resources/papers/proceedings13/061-2013.pdf

If others have better solutions, please share!

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 228 views
  • 0 likes
  • 1 in conversation