Can someone provide me an example of changing the HTTP/S ports with Acegi ? Javadoc isn't that clear.
Thanks,
Lars
Can someone provide me an example of changing the HTTP/S ports with Acegi ? Javadoc isn't that clear.
Thanks,
Lars
If you're wondering how to switch channel transports from HTTP to HTTPS and vice versa, check out the samples/contacts/etc/cas/applicationContext.xml.
We can really only demonstrate this functionality in the CAS example, because CAS has a technical requirement for HTTPS and thus people running that sample must already have a certificate configured etc.
Good luck!
I've already managed to use HTTPS for the login screen. What I wanted to know is how to switch the port numbers when the application server has configured other ports than the Acegi default ports.
Thanks,
Lars
You'd need to set a PortResolver (probably PortResolverImpl) against RetryWithHttpEntryPoint and RetryWithHttpsEntryPoint beans. The PortResolver has a PortMapper (probably PortMapperImpl) which contains a table of HTTP:HTTPS pairs. Check out the JavaDocs and unit tests for more information.