Results 1 to 4 of 4

Thread: Example of HTTPS port configuration

  1. #1
    Join Date
    Aug 2004
    Location
    Southern Germany
    Posts
    30

    Default Example of HTTPS port configuration

    Can someone provide me an example of changing the HTTP/S ports with Acegi ? Javadoc isn't that clear.

    Thanks,
    Lars

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    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!

  3. #3
    Join Date
    Aug 2004
    Location
    Southern Germany
    Posts
    30

    Default

    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

  4. #4
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    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.

Similar Threads

  1. Dynamic Property Configuration
    By fenrick in forum Container
    Replies: 3
    Last Post: May 12th, 2006, 02:38 AM
  2. configuration question
    By lumpynose in forum Container
    Replies: 7
    Last Post: Aug 31st, 2005, 07:56 PM
  3. Replies: 0
    Last Post: Jun 21st, 2005, 06:17 AM
  4. Where should one put configuration data?
    By dcioccar in forum Architecture
    Replies: 1
    Last Post: May 19th, 2005, 07:18 PM
  5. Replies: 5
    Last Post: Aug 27th, 2004, 07:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •