<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [resolved] Get authenticated user in cCxf / mediation route in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-authenticated-user-in-cCxf-mediation-route/m-p/2323753#M93544</link>
    <description>Hello all,
&lt;BR /&gt;
&lt;BR /&gt;it may be pure CXF question, but I'll risk it to ask here as well.. (related to mediation routes)
&lt;BR /&gt;
&lt;BR /&gt;Having a cCxf is there a way to get the username (or other identifier) of the authenticated user? 
&lt;BR /&gt;
&lt;BR /&gt;When using WS-Security with the Camel-CXF,&amp;nbsp; the user principal object is stored in the CameCxfMessage header and is not really accessible for further processing (it may make sense, as the UT is not the only way to authenticate the subject and getting the SAML, Kerberos or STS ticket is not always useful).
&lt;BR /&gt;
&lt;BR /&gt;Thanks for any hint.
&lt;BR /&gt;
&lt;BR /&gt;Have fun
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Gabriel</description>
    <pubDate>Sat, 16 Nov 2024 10:54:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T10:54:01Z</dc:date>
    <item>
      <title>[resolved] Get authenticated user in cCxf / mediation route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-authenticated-user-in-cCxf-mediation-route/m-p/2323753#M93544</link>
      <description>Hello all,
&lt;BR /&gt;
&lt;BR /&gt;it may be pure CXF question, but I'll risk it to ask here as well.. (related to mediation routes)
&lt;BR /&gt;
&lt;BR /&gt;Having a cCxf is there a way to get the username (or other identifier) of the authenticated user? 
&lt;BR /&gt;
&lt;BR /&gt;When using WS-Security with the Camel-CXF,&amp;nbsp; the user principal object is stored in the CameCxfMessage header and is not really accessible for further processing (it may make sense, as the UT is not the only way to authenticate the subject and getting the SAML, Kerberos or STS ticket is not always useful).
&lt;BR /&gt;
&lt;BR /&gt;Thanks for any hint.
&lt;BR /&gt;
&lt;BR /&gt;Have fun
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Gabriel</description>
      <pubDate>Sat, 16 Nov 2024 10:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-authenticated-user-in-cCxf-mediation-route/m-p/2323753#M93544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get authenticated user in cCxf / mediation route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-authenticated-user-in-cCxf-mediation-route/m-p/2323754#M93545</link>
      <description>ok, please disregard, just found a way to get it using a bean..&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;org.apache.cxf.message.Message cxfMessage = in.getHeader(CxfConstants.CAMEL_CXF_MESSAGE, org.apache.cxf.message.Message.class);&lt;BR /&gt;HttpServletRequest request = (HttpServletRequest)cxfMessage.get("HTTP.REQUEST");&lt;BR /&gt;String username = request.getUserPrincipal().getName();&lt;/PRE&gt;&lt;BR /&gt;g.</description>
      <pubDate>Fri, 18 Dec 2015 11:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-authenticated-user-in-cCxf-mediation-route/m-p/2323754#M93545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-18T11:38:13Z</dc:date>
    </item>
  </channel>
</rss>

