Hi,

You hit the bulls eye. That works! Thanks for the help.

Thanks
Sashika.


On Thu, Jan 30, 2014 at 4:08 PM, Jérôme LELEU <[email protected]> wrote:

> Hi,
>
> I misthought on this and didn't not lead you to the right direction.
>
> If you use the OAuth server support, the webflow does happen only for the
> authentication process when the "real" callbackUrl is no more used.
>
> The callback url is in fact saved into the session:
> https://github.com/Jasig/cas/blob/master/cas-server-support-oauth/src/main/java/org/jasig/cas/support/oauth/web/OAuth20AuthorizeController.java#L94
> .
>
> Would you mind trying using ${sessionScope.oauth20_callbackUrl} into the
> login page?
>
> Best regards,
> Jérôme
>
>
>
> 2014-01-30 Sashika <[email protected]>:
>
> Hi,
>>
>> When I put <evaluate expression="flowScope.service"
>> result="requestScope.service"/> and use ${requestScope.service} in the jsp
>> that will resolve to the cas/oauth2.0/callbackAuthorize and not to the
>> specified redirect_uri. Also I tried requestScope.originalUrl. But that
>> does not resolve to anything. What am I missing?
>>
>> Thanks.
>>
>>
>> On Wed, Jan 29, 2014 at 7:54 PM, Jérôme LELEU <[email protected]> wrote:
>>
>>> I thought it would do the job. Though you can certainly store this
>>> information in a request attribute at the webflow level and reuse it on
>>> your login view.
>>> In the login-webflow.xml file, find the viewLoginForm state and add
>>> something like:  <evaluate expression="${flowScope.service}"
>>> result="requestScope.service"/> and then display the
>>> ${requestScope.service} in your login view...
>>>
>>>
>>>
>>>
>>> 2014-01-29 Sashika <[email protected]>
>>>
>>> Hi,
>>>>
>>>> Great if such an option is available. I tried your suggestion adding  
>>>> *${flowScope.service}
>>>> to the casLoginView.jsp but it does not seem to resolve at runtime. Do I
>>>> have declare this reference or am I making some mistake?*
>>>>
>>>> *Thanks.*
>>>>
>>>>
>>>> On Wed, Jan 29, 2014 at 2:40 PM, Jérôme LELEU <[email protected]> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> The *callbackUrl* is the service url with a service ticket generated
>>>>> after a successful authentication. It doesn't make sense to have it on the
>>>>> login page with happens before a( successful) authentication.
>>>>> If you want to point back to the service from your login page, why
>>>>> don't you add a link to the service using something like
>>>>> *${flowScope.service}*?
>>>>> Best regards,
>>>>> Jérôme
>>>>>
>>>>>
>>>>>
>>>>> 2014-01-29 Sashika <[email protected]>
>>>>>
>>>>>>  Hi,
>>>>>>
>>>>>> I see in the Oauth confirm.jsp it has referenced ${callbackUrl} in a
>>>>>> link. Is there a way which I can reference ${callbackUrl} in
>>>>>> casLoginView.jsp. This is needed because I need to have an additional 
>>>>>> link
>>>>>> in the login page back to the service URL. In this case It does not 
>>>>>> matter
>>>>>> whether I have a valid service ticket or not. Basically I need to know 
>>>>>> what
>>>>>> was the clients actual redirect_uri when he made the oauth request.
>>>>>>
>>>>>> Thanks
>>>>>> sashika.
>>>>>>
>>>>>> --
>>>>>> 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
>>>
>>>
>> --
>> 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