cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gina Choi <ginacho...@gmail.com>
Subject Re: CXF supporting scope
Date Mon, 21 May 2012 18:18:34 GMT
Oliver,

I put
https://wkengchoi.global.sdl.corp:8443/fedizhelloworld/secureservlet/fed in
the browser instead of
https://wkengchoi.global.sdl.corp:8443/fedizhelloworld/secureservlet/fed/and
it is working now.

It seems that value of requestURI set based on initial URL.
On Mon, May 21, 2012 at 2:13 PM, Gina Choi <ginachoi88@gmail.com> wrote:

> Hi Oliver,
>
> Following is part of my web.xml. I don't have a slash at the end.
>
> Doesn't
> response.sendRedirect(response.encodeRedirectURL(requestURI)) expect a full
> URL rather than relative URL?
>
>
>  <servlet-mapping>
>   <servlet-name>FederationServlet</servlet-name>
>   <url-pattern>/secureservlet/fed</url-pattern>
>  </servlet-mapping>
>  <security-role>
>   <role-name>Manager</role-name>
>   <role-name>User</role-name>
>   <role-name>Admin</role-name>
>   <role-name>Authenticated</role-name>
>   <role-name>Developer</role-name>
>  </security-role>
>
> On Mon, May 21, 2012 at 2:06 PM, Oliver Wulff <owulff@talend.com> wrote:
>
>>  Remove the last slash:
>>
>>
>>
>> <servlet-mapping>
>>     <servlet-name>FederationServlet</servlet-name>
>>     <url-pattern>/secureservlet/fed</url-pattern>
>> </servlet-mapping>
>>
>>
>>
>> ------
>>
>> Oliver Wulff
>>
>> Blog: http://owulff.blogspot.com
>> Solution Architect
>> http://coders.talend.com
>>
>> <http://coders.talend.com>Talend Application Integration Division
>> http://www.talend.com
>>   ------------------------------
>> *From:* Gina Choi [ginachoi88@gmail.com]
>> *Sent:* 21 May 2012 19:56
>>
>> *To:* Oliver Wulff
>> *Cc:* users@cxf.apache.org
>> *Subject:* Re: CXF supporting scope
>>
>>   Hi Oliver,
>>
>> I am looking at
>>
>> org.apache.cxf.fediz.tomcat.FederationAuthenticator.java(line 421 -
>> 441). You have following lines and value of requestURL is "*
>> /fedizhelloworld/secureservlet/fed/*". You send "wreply" to STS and you
>> should be able to retrieve it from STS response. I don't know how Tomcat
>> manage savedRequestURL(session) internally.
>>
>>  requestURI = savedRequestURL(session);
>>
>> response.sendRedirect(response.encodeRedirectURL(requestURI));
>>
>>
>>  On Mon, May 21, 2012 at 1:49 PM, Gina Choi <ginachoi88@gmail.com> wrote:
>>
>>> Hi Oliver,
>>>
>>> I am using \fediz\trunk\examples\simpleWebapp.
>>>
>>>  On Mon, May 21, 2012 at 1:44 PM, Oliver Wulff <owulff@talend.com>wrote:
>>>
>>>>  Hi Gina
>>>>
>>>>
>>>>
>>>> Which example do you use?
>>>>
>>>>
>>>>
>>>> I've to sync that as the simple example uses:
>>>>
>>>>
>>>>
>>>> /fedizhelloworld/secureservlet/fed/
>>>>
>>>>
>>>>
>>>> whereas the wsclient example uses:
>>>>
>>>>
>>>>
>>>> /fedizhelloworld/secure/fedservlet
>>>>
>>>>
>>>>
>>>> Maybe that's the issue.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ------
>>>>
>>>> Oliver Wulff
>>>>
>>>> Blog: http://owulff.blogspot.com
>>>> Solution Architect
>>>> http://coders.talend.com
>>>>
>>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message