• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Anonyms user not getting to SSO login page | HTTP error 404

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When anonyms user clicks "pm" link on a post, user should be redirected to sso login page on my existing application which is http://my_ip_address:8080/brainoadmin/pages/brainohomepage.jsp. This is because, I have given only read permission to the group to which anonyms user is assigned.

However, user is being directed to following page:
http://my_ip_address:8080/jforumhttp://my_ip_address:8080/brainoadmin/pages/brainohomepage.jsp/jforum/pm/sendTo/1.page

Below are relevant paramaters from my SystemGlobals.properties.




Am I missing anything here ?

Thanks
M Jain
[originally posted on jforum.net by sf_techie]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The default for anonymous users is not to display any "registered" user links (private messages, my profile, and the like). This is generally done in the templates using the "logged" context variable. E.g., <#if logged>... registered stuff...</#if>

The logged variable is set via the SessionFacade class's makeLogged and makeUnlogged. These can called based on a wide variety of conditions. But many of the "is this an anonymous user" decisions come via the anonymous.userId config parameter.

The anonymous.userId parameter is the DB Id number that matches your anonymous user's ID. Normally this is created as the first user and is 1. However, if due to your SSO setup you are using a different id for the anonymous user, you will need to set this to match your situation.

One thing to beware of is that I believe there are still a few places in the template files that use a hard coded "user.id == 1" condition. If you find one of these, put a Jira bug entry on it so it will get fixed.

If this is not the behavior you want, you should now know enough to modify the templates to make it do what you want.

[originally posted on jforum.net by monroe]
reply
    Bookmark Topic Watch Topic
  • New Topic