Thanks,

 

I´ve inserted the TGT in the flow scope and working properly. Now, I want to
access the screen once the user has logged. I´ve modified:

 

-          cas-servlet.xml

<prop

                                               key="/newpage">

                                               selectUjRolController

                               </prop>

…

<bean id="newPageController" class="org.jasig.cas.web. NewPageController "
/>

-          web.xml

 

        <servlet-mapping>

                               <servlet-name>cas</servlet-name>

                               <url-pattern>/newpage</url-pattern>

                </servlet-mapping>

 

The screen is displayed, but I want to submit the procces to
Saml10SuccessResponseView and redirected to the client application.

 

Is it possible?

 

Thanks

 

De: Scott Battaglia [mailto:[email protected]] 
Enviado el: martes, 15 de marzo de 2011 4:35
Para: [email protected]
Asunto: Re: [cas-user] New jsp in login-webflow

 

I believe we only hold the TGT in the request scope, so if you show another
screen in between then you lose the TGT (I'd have to double check the code).

 

On Mon, Mar 14, 2011 at 1:33 PM, Fco Javier Carreras Calero
<[email protected]> wrote:

I tried to change:

 

<transition on="submit" bind="true" validate="true" to="realSubmit"> 

 

And 

 

<view-state id="viewSelectorUJForm" view="casSelectUJView" >

            <transition on="submit"  to="sendTicketGrantingTicket"/>

        </view-state>

 

And

 

<action-state id="realSubmit">

       <evaluate
expression="authenticationViaFormAction.submit(flowRequestContext,
flowScope.credentials, messageContext)" />

                               <transition on="warn" to="warn" />

                               <transition on="success"
to="viewSelectorUJForm" />

                               <transition on="error" to="viewLoginForm" />

</action-state>

 

 

But, the ticketGrantingTicketId in SendTicketGrantingTicketAction is null.
Why?

 

 

 

De: Fco Javier Carreras Calero [mailto:[email protected]] 
Enviado el: lunes, 14 de marzo de 2011 17:37
Para: [email protected]
Asunto: [cas-user] New jsp in login-webflow

 

Hi,

 

I want a new jsp is displayed after the login screen, but I want to appear
after checking credentials. Specifically, I want to be shown after
authentication and before validation. From this page you must be able to get
the user online.


How I can do?

 

Right now, I've done in the following way:

 

...

 

<view-state id="viewLoginForm" view="casLoginView" model="credentials">

        <var name="credentials"
class="org.jasig.cas.authentication.principal.UsernamePasswordCredentials"
/>

        <binder>

            <binding property="username" />

            <binding property="password" />

        </binder>

        <on-entry>

            <set name="viewScope.commandName" value="'credentials'" />

        </on-entry>

                <transition on="submit" bind="true" validate="true"
to="viewSelectorUJForm">

            <set name="flowScope.credentials" value="credentials" />

            <evaluate
expression="externalContext.getSessionMap().put('prCredentials',flowScope.cr
edentials)"/>

            <evaluate
expression="authenticationViaFormAction.doBind(flowRequestContext,
flowScope.credentials)" />

        </transition>

                </view-state>

 

<view-state id="viewSelectorUJForm" view="casSelectUJView" >

            <transition on="submit"  to="realSubmit"/>

        </view-state>

…

But, in this way shows the jsp before authentication.

 

Thanks.

-- 
You are currently subscribed to [email protected] as:
[email protected]
 
 

To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user
-- 
You are currently subscribed to [email protected] as:
[email protected]


 
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user

 

-- 
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to