The Single Sign-On
application installs in a DotNetNuke (DNN) portal framework and provides User account management and auto-login/single sign-on (SSO) services from a remote website to the host DNN portal.
But what about the DNN portal Login and Registration controls? And what can you do to make the websites work together seamlessly? Here are some awkward situations and graceful solutions.
Login and Logout Links on the DNN portal.
Remove the Login and Logout skin objects from your skin.
- Acquire the skin.ascx files from your portal via FTP or some other method.
- Edit the files using a text editor like Notepad. Be sure to make backups first. Remove these two skin objects from the HTML and their respective Register tags at the top of the page.
- Restore the updated skin files back to your server.
Note: If you need to login to your DNN site at any time in the future, you can simple add Login.aspx to your domain address: http://www.my-dnn-site.com/Login.aspx
Another option is to hide the Login/Logout control IF you are not a registered user. This has the effect of only showing Logout once you are logged in:
<%
If DotNetNuke.Security.PortalSecurity.IsInRole( PortalSettings.RegisteredRoleName )
Then
%>
<%
End If
%>
Unregistered User tries to access Secure Content on DNN portal.
Redirect them back to the remote server for proper login.
- Add a new page on the DNN portal.
- Name it Remote Redirect (or whatever you want).
- Advanced Settings > Other Settings > Link URL > URL (A Link to an External Resource). Set this to the desired target page on the remote server – could be the home page, a dashboard page, or a page with a link (including the SSOToken) back to the DNN portal.
- Admin > Site Settings > Advanced Settings > Page Management > Login Page > Remote Redirect.
Note: after the Remote Redirect page is created, you can only access the settings via Admin > Pages > select Remote Redirect > click on Edit pencil icon
Registered User logs out of DNN portal.
Redirect them back to the remote server.
Create a redirect page on the DNN portal. Same as above.
Admin > User Accounts > User Settings (link at bottom right) > Redirect After Logout (select Remote Redirect page).
These configurations will facilitate the flow between your sites and keep your users on track.
For more technical information, please visit the Single Sign On product page.