Skip to content

Commit

Permalink
Fix oxTrust oxAuth authentication method
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Aug 19, 2015
1 parent 3292abb commit e2d70af
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions server/src/main/webapp/login.page.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<page xmlns="http://jboss.org/schema/seam/pages"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/schema/seam/pages http://jboss.org/schema/seam/pages-2.3.xsd"
view-id="/login.xhtml">


<rewrite pattern="/login" />

<navigation from-action="#{identity.login}">
<rule if="#{identity.loggedIn}">
<redirect view-id="/home.xhtml" />
</rule>
</navigation>

<navigation from-action="#{authenticator.preAuthenticate}">
<rule if-outcome="true">
<redirect view-id="/home.xhtml" />
</rule>
</navigation>
</page>
<?xml version="1.0" encoding="UTF-8"?>
<page xmlns="http://jboss.org/schema/seam/pages"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/schema/seam/pages http://jboss.org/schema/seam/pages-2.3.xsd"
view-id="/login.xhtml">

<action execute="#{authenticator.preAuthenticate}" on-postback="false" />
<rewrite pattern="/login" />

<navigation from-action="#{identity.login}">
<rule if="#{identity.loggedIn}">
<redirect view-id="/home.xhtml" />
</rule>
</navigation>

<navigation from-action="#{authenticator.preAuthenticate}">
<rule if-outcome="true">
<redirect view-id="/home.xhtml" />
</rule>
</navigation>
</page>

0 comments on commit e2d70af

Please sign in to comment.