My CAS/Shiro/Guice integration has been working fine. But I'm not exactly
sure how to specify the "unauthorizedUrl" given that we have done all our
configuration without using an ini file.

Some help or direction would be appreciated.

Here's the gist of our ShiroWebModule:

public class HBShiroWebModule extends ShiroWebModule {
    HBShiroWebModule(ServletContext sc) {
        super(sc);
    }

    @Override
    public void configure() {
        super.configure();
    }

    @SuppressWarnings("unchecked")
    protected void configureShiroWeb() {
        try {
            this.
            bindRealm().to(InjectableCasRealm.class);
            ShiroWebModule.guiceFilterModule();
        } catch (Exception e) {
            addError(e);
        }
        expose(RolesAuthorizationFilter.class);
        addFilterChain("/public", ANON);
        addFilterChain("/private", ROLES, config(ROLES, "HB_USER"));
        Key<InjectableCasFilter> casFilter =
Key.get(InjectableCasFilter.class);
        addFilterChain("/shiro-cas", casFilter);
        expose(InjectableCasFilter.class);
    }
}

We are injecting the other properties (e.g. failureUrl, loginUrl) to our
InjectableCasFilter and InjectableCasRealm.

Thanks!

 - Richard

-- 
Richard Mixon
Custom Computer Creations, L.L.C.
mobile: (480) 577-6834 office: (480) 614-3442
email: [email protected] <mailto:[email protected]>
Microsoft Partner ID: 1263725
The messages and documents transmitted with this notice contain
confidential information belonging to the sender. If you are not the
intended recipient of this information, you are hereby notified that any
disclosure, copying, distribution or use of the information is strictly
prohibited. If you have received this transmission in error, please notify
the sender immediately.

Reply via email to