Skip to content

Commit

Permalink
[abc] (CCUK-2794) Find now uses the authentication library that was e…
Browse files Browse the repository at this point in the history
…xtract from it. [rev. alex.scown]
  • Loading branch information
Daniel Grayling authored and Daniel Grayling committed Mar 11, 2015
1 parent 32e8b5a commit f661946
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 169 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,11 @@
<artifactId>configuration-impl</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.hp.autonomy.frontend.configuration</groupId>
<artifactId>configuration-authentication</artifactId>
<version>0.1.0</version>
</dependency>
<dependency>
<groupId>com.hp.autonomy.frontend</groupId>
<artifactId>logging</artifactId>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

20 changes: 20 additions & 0 deletions src/main/webapp/WEB-INF/applicationContext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,26 @@
<security:intercept-url pattern="/api/config/**" access="ROLE_DEFAULT"/>
</security:http>

<bean id="defaultLoginAuthenticationProvider" class="com.hp.autonomy.frontend.configuration.authentication.DefaultLoginAuthenticationProvider">
<constructor-arg ref="configFileService"/>
<constructor-arg value="ROLE_DEFAULT"/>
</bean>

<bean id="singleUserAuthenticationProvider" class="com.hp.autonomy.frontend.configuration.authentication.SingleUserAuthenticationProvider">
<constructor-arg ref="configFileService"/>
<constructor-arg value="ROLE_ADMIN"/>
</bean>

<bean id="loginSuccessHandler" class="com.hp.autonomy.frontend.configuration.authentication.LoginSuccessHandler">
<constructor-arg value="ROLE_DEFAULT"/>
<constructor-arg value="/config/"/>
<constructor-arg value="/p/"/>
</bean>

<bean id="findAccessDeniedHandler" class="com.hp.autonomy.frontend.configuration.authentication.FindAccessDeniedHandler">
<constructor-arg value="loginPage"/>
</bean>

<security:http>
<security:access-denied-handler ref="findAccessDeniedHandler"/>
<security:intercept-url pattern="/p/**" access="ROLE_ADMIN"/>
Expand Down

0 comments on commit f661946

Please sign in to comment.