<?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 Security Framework Overview</title>
	<atom:link href="http://monduke.com/2006/02/02/weblogic-security-framework-overview/feed/" rel="self" type="application/rss+xml" />
	<link>http://monduke.com/2006/02/02/weblogic-security-framework-overview/</link>
	<description>Covering J2EE Security and WebLogic Topics</description>
	<lastBuildDate>Tue, 13 Apr 2010 01:53:49 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mike Fleming</title>
		<link>http://monduke.com/2006/02/02/weblogic-security-framework-overview/comment-page-1/#comment-14279</link>
		<dc:creator>Mike Fleming</dc:creator>
		<pubDate>Sat, 06 Mar 2010 14:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=20#comment-14279</guid>
		<description>Matthias,

Thanks for pointing out that the latest WebLogic can finally leverage multiple domains. About time! ;-)

Regarding your question, I haven&#039;t tried it but my guess is that the user would not be able to access App B without logging in again. The reason is that App B&#039;s realm can&#039;t be sure it&#039;s the same user.

Mike</description>
		<content:encoded><![CDATA[<p>Matthias,</p>
<p>Thanks for pointing out that the latest WebLogic can finally leverage multiple domains. About time! <img src='http://monduke.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Regarding your question, I haven&#8217;t tried it but my guess is that the user would not be able to access App B without logging in again. The reason is that App B&#8217;s realm can&#8217;t be sure it&#8217;s the same user.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias</title>
		<link>http://monduke.com/2006/02/02/weblogic-security-framework-overview/comment-page-1/#comment-14277</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Fri, 26 Feb 2010 11:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=20#comment-14277</guid>
		<description>Nice write-up. So far, it appears that all remains valid for WebLogic 10.3.2.

I believe your two last statements before the conclusion are inaccurate, though:

A stanza in web.xml such as

  
    BASIC
    MyFancyWebAppSpecificRealm
  

can select any of the configured realms. This means that App A can use different authenticators, users, and groups than App B, no?

Would be interesting to consider if WL maintains on the session which Realm a user has been authenticated against, in case user name and roles (but not password) match between realms. Can one log in to App A, then successfully use App B?</description>
		<content:encoded><![CDATA[<p>Nice write-up. So far, it appears that all remains valid for WebLogic 10.3.2.</p>
<p>I believe your two last statements before the conclusion are inaccurate, though:</p>
<p>A stanza in web.xml such as</p>
<p>    BASIC<br />
    MyFancyWebAppSpecificRealm</p>
<p>can select any of the configured realms. This means that App A can use different authenticators, users, and groups than App B, no?</p>
<p>Would be interesting to consider if WL maintains on the session which Realm a user has been authenticated against, in case user name and roles (but not password) match between realms. Can one log in to App A, then successfully use App B?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Fleming</title>
		<link>http://monduke.com/2006/02/02/weblogic-security-framework-overview/comment-page-1/#comment-338</link>
		<dc:creator>Mike Fleming</dc:creator>
		<pubDate>Wed, 14 Jun 2006 01:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=20#comment-338</guid>
		<description>John,

Thanks for following up.

LOL. I&#039;m guessing they didn&#039;t even look at the method signatures of RoleListerMBean. Nothing there about the roles a user has...

Mike</description>
		<content:encoded><![CDATA[<p>John,</p>
<p>Thanks for following up.</p>
<p>LOL. I&#8217;m guessing they didn&#8217;t even look at the method signatures of RoleListerMBean. Nothing there about the roles a user has&#8230;</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Lindwall</title>
		<link>http://monduke.com/2006/02/02/weblogic-security-framework-overview/comment-page-1/#comment-336</link>
		<dc:creator>John Lindwall</dc:creator>
		<pubDate>Tue, 13 Jun 2006 17:44:11 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=20#comment-336</guid>
		<description>Thanks for the reply!

Funny, but I ended taking the same path you suggested -- base the decision on group membership vs role.  This will work well for us since we are not yet using any of the fancy dynamic role-determination stuff (i.e. &quot;Is time of day between x and y and creepy parameter check stuff passes muster&quot;).  We use the MBean to check the group membership but I&#039;ll also check out the Security class idea you have suggested above.

I appreciate your explanation of the issue; BEA support was not as concise or informative.

Regarding the console, no I do not know of a screen to show me the roles a user has.  Here is what the BEA Support told me:

&quot;The MBeans generally support anything you can do through the console. However, the difficult and hidden parts are the J2EE specific things like isUserInRole(), isCallerInRole(), etc.
The RoleListerMBean may help here.&quot;</description>
		<content:encoded><![CDATA[<p>Thanks for the reply!</p>
<p>Funny, but I ended taking the same path you suggested &#8212; base the decision on group membership vs role.  This will work well for us since we are not yet using any of the fancy dynamic role-determination stuff (i.e. &#8220;Is time of day between x and y and creepy parameter check stuff passes muster&#8221;).  We use the MBean to check the group membership but I&#8217;ll also check out the Security class idea you have suggested above.</p>
<p>I appreciate your explanation of the issue; BEA support was not as concise or informative.</p>
<p>Regarding the console, no I do not know of a screen to show me the roles a user has.  Here is what the BEA Support told me:</p>
<p>&#8220;The MBeans generally support anything you can do through the console. However, the difficult and hidden parts are the J2EE specific things like isUserInRole(), isCallerInRole(), etc.<br />
The RoleListerMBean may help here.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Fleming</title>
		<link>http://monduke.com/2006/02/02/weblogic-security-framework-overview/comment-page-1/#comment-309</link>
		<dc:creator>Mike Fleming</dc:creator>
		<pubDate>Sun, 04 Jun 2006 03:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=20#comment-309</guid>
		<description>John,

Thanks.

Roles are going to be very hard to get. Would group membership be satisfactory? If that&#039;s the case, the proprietary weblogic.security.Security class can help. It has a getCurrentSubject() method where the returned Subject has the groups to which the user belongs. You can get the same information by querying the MBeans but the Security class way is so much easier.

Getting back to roles... The problem is that they are dynamic based upon the resource the user requested and sometimes other factors such as time of day. There is no static mapping of a user to a role. Instead, role mapping providers implement the RoleMapper interface. It has the following method:

Map getRoles(Subject subject, Resource resource, ContextHandler handler)

Given a Subject (user) and what the user accessed, the role mapper can tell which roles apply. From what I can tell, there is no way to access the getRoles() method from the role mapper MBean. Besides, utility classes would have no way of re-constructing the resource.

You mention trickery in Console... I don&#039;t know of any place in Console that shows roles that a user has. Is there such a place?

Mike</description>
		<content:encoded><![CDATA[<p>John,</p>
<p>Thanks.</p>
<p>Roles are going to be very hard to get. Would group membership be satisfactory? If that&#8217;s the case, the proprietary weblogic.security.Security class can help. It has a getCurrentSubject() method where the returned Subject has the groups to which the user belongs. You can get the same information by querying the MBeans but the Security class way is so much easier.</p>
<p>Getting back to roles&#8230; The problem is that they are dynamic based upon the resource the user requested and sometimes other factors such as time of day. There is no static mapping of a user to a role. Instead, role mapping providers implement the RoleMapper interface. It has the following method:</p>
<p>Map getRoles(Subject subject, Resource resource, ContextHandler handler)</p>
<p>Given a Subject (user) and what the user accessed, the role mapper can tell which roles apply. From what I can tell, there is no way to access the getRoles() method from the role mapper MBean. Besides, utility classes would have no way of re-constructing the resource.</p>
<p>You mention trickery in Console&#8230; I don&#8217;t know of any place in Console that shows roles that a user has. Is there such a place?</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Lindwall</title>
		<link>http://monduke.com/2006/02/02/weblogic-security-framework-overview/comment-page-1/#comment-293</link>
		<dc:creator>John Lindwall</dc:creator>
		<pubDate>Thu, 18 May 2006 01:13:20 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=20#comment-293</guid>
		<description>Nice work.  I appreciate your illuminating commentary on the more convoluted aspects of WLS.

Question: In WLS 9.1, do you know of a general way to determine if the &quot;current user&quot; is acting in a particular role?  By general, I mean it does not require that the caller is a servlet or EJB.  

I really want to create a Spring-managed SecurityService with a method like this: isUserInRole(String roleName).

This service class can be invoked in any java code -- utility class, domain object, servlet, ejb, etc.  And magically it can check the current user&#039;s roles against the rolename provided in the parameter. 

BEA&#039;s stellar support staff has not found anything for me including MBeans (which I was certain would provide what I need).  The veiled comment was that BEA&#039;s oen WLS console app uses secret techniques to access the role info.

Thanks!</description>
		<content:encoded><![CDATA[<p>Nice work.  I appreciate your illuminating commentary on the more convoluted aspects of WLS.</p>
<p>Question: In WLS 9.1, do you know of a general way to determine if the &#8220;current user&#8221; is acting in a particular role?  By general, I mean it does not require that the caller is a servlet or EJB.  </p>
<p>I really want to create a Spring-managed SecurityService with a method like this: isUserInRole(String roleName).</p>
<p>This service class can be invoked in any java code &#8212; utility class, domain object, servlet, ejb, etc.  And magically it can check the current user&#8217;s roles against the rolename provided in the parameter. </p>
<p>BEA&#8217;s stellar support staff has not found anything for me including MBeans (which I was certain would provide what I need).  The veiled comment was that BEA&#8217;s oen WLS console app uses secret techniques to access the role info.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
