Announcement Announcement Module
Collapse
No announcement yet.
Example of HTTPS port configuration Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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!

    Comment


    • #3
      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

      Comment


      • #4
        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.

        Comment

        Working...
        X