Dashboard, alias, anonymous, spring security
Bill Nelson <[email protected]>
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <[email protected]> |
All I'm creating dashboards with different surveillance contexts for different groups. I'm able to access each one individually by http://<server-ip>/opennms/dashboard.jsp and then logging in as each individual user. Logging in, while functional, doesn't work well for large monitors on the wall. So, I headed down the path of anonymous login. The instructions in the user guide (20.0.1) references acegi security but authentication has obviously switched to spring security. I found some emails, etc referencing the same problem/question while googling. Unfortunately it hasn't helped. I'm hoping someone can point me in the right direction. Below is a quick rundown on what I've done/how far it got me. 1. Edited web.xml adding the servlet, servlet-mapping, and filter-mapping sections. Able to access the individual dashboards, have to authenticate 2. Edited applicationContext-spring-security.xml adding <intercept-url pattern="/dashboard01" access="ROLE_ANONYMOUS,ROLE_USER,ROLE_DASHBOARD" /> and editing <intercept-url pattern="/surveillanceservice.gwt" access="ROLE_ANONYMOUS,ROLE_USER,ROLE_DASHBOARD" /> to include ROLE_ANONYMOUS. Still can access the custom dashboard but must authenticate. 3. Edited applicationContext-spring-security.xml again and added ROLE_ANONYMOUS to /osgi/vaadin-surveillance-views/** and /osgi/VAADIN/**. Didn't have to login but got the default dashboard page. 4. Edited applicationContext-spring-security.xml again removing the /osgi anonymous statements. Had to login but got custom dashboard. Of course there have been countless variations I've tried today (spent whole day on this . . .). Late this afternoon I reverted to the original 2 files and made the changes above so I could isolate from anything else I had tried. So, is it possible to have anonymous access to multiple different dashboards with spring security? If yes, can anyone help me crack this nut? Thanks! Bill Nelson [email protected] ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-discuss mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-discuss