This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 15, 2012, 2:11 AM
32 Posts
topic has been resolvedResolved

Force authentication page, skip xpage error?

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: Login,login error
  • Replies: 3
Hello,
 
I have an xpage that performs several lookups to another notes database, and also renders a view from that database.  In standard notes development, if an un-authenticated user does not have access to the data, it prompts the user to authenticate and then displays the data if they have access to.
 
However, with xpages, I get a non-descript error (Unexpected runtime error, The runtime has encountered an unexpected error blah blah blah) with no info in the stack trace.  This goes away when the user is authenticated.
 
This causes a prob when a user saves the page as a favourite.   Any ideas on how to get the server to force authentication just like it did in the old days?
 
A
May 15, 2012, 8:34 AM
170 Posts
Re: Force authentication page, skip xpage error?
 You could use my redirector custom control and redirect the user to a login page if the user is anonymous.
 
 
It's the easiest way to check if the user should get access to a certain xpage or not. 
It's also available using the import tool that is on openntf.org. So if you install this you will have easy access to the control  
and can install it in your own application with a few clicks. 
 
/Fredrik 
 
 
May 15, 2012, 4:33 PM
67 Posts
Re: Force authentication page, skip xpage error?
 Hi Al,
 
another option is, to bring the acl control to the page.
It defines who can access this page in what manner. You also can use roles. 
It's a little bit similar to the old Form Security options. 

When the user doesn't match, the defined loginpage (webconf) comes up.
 
<xp:this.acl>
<xp:acl>
<xp:this.entries>
<xp:aclEntry fullName="[Operator]" name="[Operator]"
right="EDITOR" type="ROLE">
</xp:aclEntry>
         </xp:this.entries>
</xp:acl>
</xp:this.acl>
 
Cheers 
Uwe 
 
 
 
 
May 15, 2012, 11:22 PM
32 Posts
Re: Force authentication page, skip xpage error?
Thank you both Fredrik and Uwe.  I have gone with Uwe's suggestion at the moment, and will download Fredrik's control to get a good understanding of what it does.
 
Cheers
 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal