Announcement Announcement Module
Collapse
No announcement yet.
How to define REQUIRES_SECURE_CHANNEL in Security 2.0? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to define REQUIRES_SECURE_CHANNEL in Security 2.0?

    Dear all,

    I want to secure a specific URL. How do I define REQUIRES_SECURE_CHANNEL in Spring Security 2.0? I can't find it anywhere. Neither does the samples shows us this.

    thanks in advance

  • #2
    Use the requires-channel attribute on the intercept-url element.

    You can see the available options in the namespace from the RNC file

    http://acegisecurity.svn.sourceforge...curity-2.0.rnc

    Or just by navigating the options in a decent XML editor.

    Comment


    • #3
      Thanks for the response luke,

      I already put requires-channel="any" and it still doesn't work. Could it be perhaps because my URL is transformed by URWRewrite?

      thanks in advance

      Comment


      • #4
        "any" means it doesn't care what channel you use so will accept either http or https. The equivalent of REQUIRES_SECURE_CHANNEL would be requires-channel="https".

        Comment

        Working...
        X