Announcement Announcement Module
Collapse
No announcement yet.
How to configure accessDeniedPage in preauth application 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 configure accessDeniedPage in preauth application

    Hi,
    I am trying to configure accessDeniedPage in preAuth application,where authenitcation is carried out by siteminder.
    In normal application where aithenitcation and authorization is done inside the application we can use something like

    HTML Code:
    <security:http auto-config="true" access-denied-page="/accessDenied.jspx">
            <security:intercept-url pattern="/secured/**"
                                    access="ROLE_ALLACCESS, ROLE_URLACCESS"/>
            <security:form-login login-page="/springSecurityLogin.jspx"
                                 default-target-url="/secured/welcome.jspx"/>
            <security:logout logout-success-url="/logoutSuccess.jspx"/>
        </security:http>

    Do we have something similar to add in PreAuth. I am using FilterSecurityInterceptor for mapping the roles to URL.

    HTML Code:
    <bean id="fsi" class="org.springframework.security.intercept.web.FilterSecurityInterceptor">
      <property name="authenticationManager" ref="authenticationManager" /> 
      <property name="accessDecisionManager" ref="httpRequestAccessDecisionManager" /> 
    - <property name="objectDefinitionSource">
    - <sec:filter-invocation-definition-source>
      <sec:intercept-url pattern="/secure/extreme/**" access="ROLE_SUPERVISOR" /> 
      <sec:intercept-url pattern="/secure/**" access="ROLE_USER" /> 
      <sec:intercept-url pattern="/**" access="ROLE_USER" /> 
      </sec:filter-invocation-definition-source>
      </property>
      </bean>
    .
    Thanks in advance.
    Last edited by ahmedmohdm; Jun 24th, 2009, 05:28 PM. Reason: editing heading
Working...
X