Announcement Announcement Module
Collapse
No announcement yet.
setting up https connections for a Restful webservice Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • setting up https connections for a Restful webservice

    hi,
    I am trying to setup a https connection for a Restful spring web service.

    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/spring/applicationContext.xml,
    /WEB-INF/applicationContext-security.xml</param-value>
    </context-param>

    <filter>
    <filter-name>springSecurityFilterChain</filter-name>
    <filter-class>org.springframework.web.filter.DelegatingFil terProxy</filter-class>
    </filter>

    <filter-mapping>
    <filter-name>springSecurityFilterChain</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <http auto-config="true" >
    <intercept-url pattern="/**" access="IS_AUTHENTICATED_ANONYMOUSLY" requires-channel="https" />
    <port-mappings>
    <port-mapping http="8280" https="8304"/>
    </port-mappings>
    <http-basic />
    </http>

    <authentication-manager>
    <authentication-provider>
    <user-service>
    <user name="bob" password="bobspassword" authorities="ROLE_USER" />
    </user-service>
    </authentication-provider>
    </authentication-manager>

    When i use the normal url it is redirected to the https and works fine. My question is do i still need the authentication-provider tag ? Is there some default setting/configuration that can be used since i am using "IS_AUTHENTICATED_ANONYMOUSLY" and not the role i have defined ?.

    regards
Working...
X