View Full Version : Example of HTTPS port configuration
Aug 17th, 2004, 08:13 AM
Can someone provide me an example of changing the HTTP/S ports with Acegi ? Javadoc isn't that clear.
Aug 17th, 2004, 07:38 PM
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.
Aug 18th, 2004, 02:30 AM
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.
Aug 18th, 2004, 05:50 PM
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.
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.