<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Weblogic web application container security part 2 ADF Security</title>
	<atom:link href="http://blog.whitehorses.nl/2010/02/01/weblogic-web-application-container-security-part-2-adf-security/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.whitehorses.nl/2010/02/01/weblogic-web-application-container-security-part-2-adf-security/</link>
	<description>Oracle, Java and SOA expertise - Lean thinking, Agile working</description>
	<lastBuildDate>Mon, 06 Feb 2012 10:46:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ganesh</title>
		<link>http://blog.whitehorses.nl/2010/02/01/weblogic-web-application-container-security-part-2-adf-security/comment-page-1/#comment-22444</link>
		<dc:creator>Ganesh</dc:creator>
		<pubDate>Mon, 16 Jan 2012 11:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.whitehorses.nl/?p=988#comment-22444</guid>
		<description>Hi Edwin,

I am facing following issue 

i created one custom authenticatior and configured in WSL srver (my custom authenticator will authenticate the user from webservices)
and returning success
      if (username.length( ) &gt; 0) {
       // user authenticated with webservice
      } else {
         // No Username, so anonymous access is being attempted
      }
      loginSucceeded = true;
      principalsBeforeCommit.add(new WLSUserImpl(username));
      //add grous base don webservice response say Manager
      principalsBeforeCommit.add(new WLSGroupImpl(&quot;Manager&quot;));
      return loginSucceeded;
     
     when i trid to run webcenter portal application jspx login with following code

                 FacesContext fctx = FacesContext.getCurrentInstance();
            HttpServletRequest request =
                (HttpServletRequest)fctx.getExternalContext().getRequest();
            HttpServletResponse response =
                (HttpServletResponse)fctx.getExternalContext().getResponse();
                        int authSuccess =
                            ServletAuthentication.login(userName.getValue().toString(),
                                                        password.getValue().toString(),
                                                        request, response);
             System.out.println(&quot;just check...&quot;+authSuccess+&quot;    &quot;+ServletAuthentication.AUTHENTICATED);
            if (authSuccess == ServletAuthentication.AUTHENTICATED) {
                System.out.println(&quot;user authenticated success........&quot;);
                if (request.isUserInRole(&quot;dddddddd&quot;))
                    ;
                Subject mySubject;
                mySubject = Security.getCurrentSubject();
                mySubject.getPrincipals().add(new WLSGroupImpl(&quot;Manager&quot;));


            } else {
                System.out.println(&quot;user authenticated fail........&quot;);
            }

	    i got authentication got seccess..
	    and in jdeveloper folloing error occured

	        &lt;  User Principal could not be found for authenticated user.&gt; 
    &lt;  Failed to get user name&gt; 
    &lt;  WARN_NO_USERS_PATTERN
oracle.security.idm.ObjectNotFoundException: No User found matching the criteria

    &lt;  An error is encountered while retrieving the policies or permissions.&gt; 
    &lt;  
java.lang.RuntimeException: User Principal could not be found for authenticated user.


please help on this, what could be the reason for these errors as i am also not able to get username in from securityContext Object.

Thanks
Ganesh</description>
		<content:encoded><![CDATA[<p>Hi Edwin,</p>
<p>I am facing following issue </p>
<p>i created one custom authenticatior and configured in WSL srver (my custom authenticator will authenticate the user from webservices)<br />
and returning success<br />
      if (username.length( ) &gt; 0) {<br />
       // user authenticated with webservice<br />
      } else {<br />
         // No Username, so anonymous access is being attempted<br />
      }<br />
      loginSucceeded = true;<br />
      principalsBeforeCommit.add(new WLSUserImpl(username));<br />
      //add grous base don webservice response say Manager<br />
      principalsBeforeCommit.add(new WLSGroupImpl(&#8220;Manager&#8221;));<br />
      return loginSucceeded;</p>
<p>     when i trid to run webcenter portal application jspx login with following code</p>
<p>                 FacesContext fctx = FacesContext.getCurrentInstance();<br />
            HttpServletRequest request =<br />
                (HttpServletRequest)fctx.getExternalContext().getRequest();<br />
            HttpServletResponse response =<br />
                (HttpServletResponse)fctx.getExternalContext().getResponse();<br />
                        int authSuccess =<br />
                            ServletAuthentication.login(userName.getValue().toString(),<br />
                                                        password.getValue().toString(),<br />
                                                        request, response);<br />
             System.out.println(&#8220;just check&#8230;&#8221;+authSuccess+&#8221;    &#8220;+ServletAuthentication.AUTHENTICATED);<br />
            if (authSuccess == ServletAuthentication.AUTHENTICATED) {<br />
                System.out.println(&#8220;user authenticated success&#8230;&#8230;..&#8221;);<br />
                if (request.isUserInRole(&#8220;dddddddd&#8221;))<br />
                    ;<br />
                Subject mySubject;<br />
                mySubject = Security.getCurrentSubject();<br />
                mySubject.getPrincipals().add(new WLSGroupImpl(&#8220;Manager&#8221;));</p>
<p>            } else {<br />
                System.out.println(&#8220;user authenticated fail&#8230;&#8230;..&#8221;);<br />
            }</p>
<p>	    i got authentication got seccess..<br />
	    and in jdeveloper folloing error occured</p>
<p>	        &lt;  User Principal could not be found for authenticated user.&gt;<br />
    &lt;  Failed to get user name&gt;<br />
    &lt;  WARN_NO_USERS_PATTERN<br />
oracle.security.idm.ObjectNotFoundException: No User found matching the criteria</p>
<p>    &lt;  An error is encountered while retrieving the policies or permissions.&gt;<br />
    &lt;<br />
java.lang.RuntimeException: User Principal could not be found for authenticated user.</p>
<p>please help on this, what could be the reason for these errors as i am also not able to get username in from securityContext Object.</p>
<p>Thanks<br />
Ganesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baji</title>
		<link>http://blog.whitehorses.nl/2010/02/01/weblogic-web-application-container-security-part-2-adf-security/comment-page-1/#comment-22241</link>
		<dc:creator>Baji</dc:creator>
		<pubDate>Wed, 11 Jan 2012 10:32:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.whitehorses.nl/?p=988#comment-22241</guid>
		<description>Hi 

We have an application implemented with ADF security.But Once user login with user credentials,we have set documents which are more secured.in order to view those documents user has to enter his credentials again in a pop up window.Once user enter the credentials again how can we validate the user name and password (i,e whether user has enterd right user name and password).we can check the user name with &quot;ADFContext.getCurrent().getSecurityContext().getUserName();  &quot;.But how can we check password is the right password.

Thanks
Baji</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>We have an application implemented with ADF security.But Once user login with user credentials,we have set documents which are more secured.in order to view those documents user has to enter his credentials again in a pop up window.Once user enter the credentials again how can we validate the user name and password (i,e whether user has enterd right user name and password).we can check the user name with &#8220;ADFContext.getCurrent().getSecurityContext().getUserName();  &#8220;.But how can we check password is the right password.</p>
<p>Thanks<br />
Baji</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edwin Biemond</title>
		<link>http://blog.whitehorses.nl/2010/02/01/weblogic-web-application-container-security-part-2-adf-security/comment-page-1/#comment-14775</link>
		<dc:creator>Edwin Biemond</dc:creator>
		<pubDate>Tue, 19 Jul 2011 22:22:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.whitehorses.nl/?p=988#comment-14775</guid>
		<description>Hi,

If you add security on the page and possible fragments to a role / group then the user should belong to this group.  Or you can use the internal role authenticated . With this only the user password must match. Else you need to add user to the right group / role  in AD.

And Make sure every authentication providers is on sufficient control flag.

Good luck</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>If you add security on the page and possible fragments to a role / group then the user should belong to this group.  Or you can use the internal role authenticated . With this only the user password must match. Else you need to add user to the right group / role  in AD.</p>
<p>And Make sure every authentication providers is on sufficient control flag.</p>
<p>Good luck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: belal</title>
		<link>http://blog.whitehorses.nl/2010/02/01/weblogic-web-application-container-security-part-2-adf-security/comment-page-1/#comment-14659</link>
		<dc:creator>belal</dc:creator>
		<pubDate>Sun, 17 Jul 2011 09:57:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.whitehorses.nl/?p=988#comment-14659</guid>
		<description>Hi Edwin,
I followed ur post using jdeveloper 11.1.2 and faced the following problem
I have user1 and group1 in my AD and want to use user1 to log in my application
I success configured AD with my weblogic then create enterprise role and give it the suitable permissions on the application pages

when I tried to log in using user1 the operation is failed with the following error &quot;Error 401--Unauthorized&quot;

do I have to use weblogic console to add user1 to group1?
help pls</description>
		<content:encoded><![CDATA[<p>Hi Edwin,<br />
I followed ur post using jdeveloper 11.1.2 and faced the following problem<br />
I have user1 and group1 in my AD and want to use user1 to log in my application<br />
I success configured AD with my weblogic then create enterprise role and give it the suitable permissions on the application pages</p>
<p>when I tried to log in using user1 the operation is failed with the following error &#8220;Error 401&#8211;Unauthorized&#8221;</p>
<p>do I have to use weblogic console to add user1 to group1?<br />
help pls</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrejus</title>
		<link>http://blog.whitehorses.nl/2010/02/01/weblogic-web-application-container-security-part-2-adf-security/comment-page-1/#comment-1265</link>
		<dc:creator>Andrejus</dc:creator>
		<pubDate>Thu, 04 Mar 2010 09:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.whitehorses.nl/?p=988#comment-1265</guid>
		<description>Hi Edwin,

More on this topic - http://andrejusb.blogspot.com/2009/01/practical-adf-security-deployment-on.html

Andrejus</description>
		<content:encoded><![CDATA[<p>Hi Edwin,</p>
<p>More on this topic &#8211; <a href="http://andrejusb.blogspot.com/2009/01/practical-adf-security-deployment-on.html" rel="nofollow">http://andrejusb.blogspot.com/2009/01/practical-adf-security-deployment-on.html</a></p>
<p>Andrejus</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edwin Biemond</title>
		<link>http://blog.whitehorses.nl/2010/02/01/weblogic-web-application-container-security-part-2-adf-security/comment-page-1/#comment-892</link>
		<dc:creator>Edwin Biemond</dc:creator>
		<pubDate>Fri, 05 Feb 2010 15:44:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.whitehorses.nl/?p=988#comment-892</guid>
		<description>Hi Gabor,

Ok why don&#039;t you want to use ADF securtity, are you not using Weblogic. then I can understand it. else just configure a ldap security provider and activate ADF security for authentication only , voila.

if you still want to do it yourself then you need to make your own login module (jaas) which does all the ldap handling . Take a look at this article. http://www.theserverside.com/tt/articles/article.tss?l=Pramati-JAAS

thanks</description>
		<content:encoded><![CDATA[<p>Hi Gabor,</p>
<p>Ok why don&#8217;t you want to use ADF securtity, are you not using Weblogic. then I can understand it. else just configure a ldap security provider and activate ADF security for authentication only , voila.</p>
<p>if you still want to do it yourself then you need to make your own login module (jaas) which does all the ldap handling . Take a look at this article. <a href="http://www.theserverside.com/tt/articles/article.tss?l=Pramati-JAAS" rel="nofollow">http://www.theserverside.com/tt/articles/article.tss?l=Pramati-JAAS</a></p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gergely Gabor</title>
		<link>http://blog.whitehorses.nl/2010/02/01/weblogic-web-application-container-security-part-2-adf-security/comment-page-1/#comment-885</link>
		<dc:creator>Gergely Gabor</dc:creator>
		<pubDate>Thu, 04 Feb 2010 18:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.whitehorses.nl/?p=988#comment-885</guid>
		<description>Hi Edwin!

I&#039;m a beginner in Jdeveloper and ADF 11g. Please, give me some help. 
We use Active Directory authentication at my firm. I want develop a web application with ADF 11g, but I don&#039;t want use ADF security. How can I achive AD authentication from this web application

Please send some tip to my email
thanks
Gabor</description>
		<content:encoded><![CDATA[<p>Hi Edwin!</p>
<p>I&#8217;m a beginner in Jdeveloper and ADF 11g. Please, give me some help.<br />
We use Active Directory authentication at my firm. I want develop a web application with ADF 11g, but I don&#8217;t want use ADF security. How can I achive AD authentication from this web application</p>
<p>Please send some tip to my email<br />
thanks<br />
Gabor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uberVU - social comments</title>
		<link>http://blog.whitehorses.nl/2010/02/01/weblogic-web-application-container-security-part-2-adf-security/comment-page-1/#comment-862</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Tue, 02 Feb 2010 08:54:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.whitehorses.nl/?p=988#comment-862</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Twitter by whitehorsesnl: Whiteblog: Weblogic web application container security part 2 ADF Security (http://bit.ly/ciBCrD)...</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Twitter by whitehorsesnl: Whiteblog: Weblogic web application container security part 2 ADF Security (<a href="http://bit.ly/ciBCrD" rel="nofollow">http://bit.ly/ciBCrD</a>)&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

