forked from apereo/cas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d411e7
commit f04bc85
Showing
8 changed files
with
46 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
description = 'Apereo CAS WS-Federation Webflow Support' | ||
dependencies { | ||
compile project(':cas-server-core-webflow') | ||
compile project(':cas-server-support-trusted') | ||
} |
30 changes: 30 additions & 0 deletions
30
...-webflow/src/main/java/org/jasig/cas/web/flow/TrustedAuthenticationWebflowConfigurer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.jasig.cas.web.flow; | ||
|
||
import org.springframework.stereotype.Component; | ||
import org.springframework.webflow.engine.ActionState; | ||
import org.springframework.webflow.engine.Flow; | ||
import org.springframework.webflow.engine.TargetStateResolver; | ||
import org.springframework.webflow.engine.Transition; | ||
import org.springframework.webflow.engine.TransitionableState; | ||
|
||
import java.util.Iterator; | ||
|
||
/** | ||
* The {@link TrustedAuthenticationWebflowConfigurer} is responsible for | ||
* adjusting the CAS webflow context for trusted authn integration. | ||
* | ||
* @author Misagh Moayyed | ||
* @since 4.2 | ||
*/ | ||
@Component("trustedWebflowConfigurer") | ||
public class TrustedAuthenticationWebflowConfigurer extends AbstractCasWebflowConfigurer { | ||
|
||
@Override | ||
protected void doInitialize() throws Exception { | ||
final Flow flow = getLoginFlow(); | ||
final ActionState actionState = createActionState(flow, "remoteAuthenticate", createEvaluateAction("principalFromRemoteUserAction")); | ||
actionState.getTransitionSet().add(createTransition(TRANSITION_ID_SUCCESS, TRANSITION_ID_SEND_TICKET_GRANTING_TICKET)); | ||
actionState.getTransitionSet().add(createTransition(TRANSITION_ID_ERROR, getStartState(flow).getId())); | ||
setStartState(flow, actionState); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters