groups.google.com
Open in
urlscan Pro
172.253.118.138
Public Scan
URL:
https://groups.google.com/g/wildfly/c/K-k2_xGJsuQ
Submission: On November 08 via manual from SG — Scanned from SG
Submission: On November 08 via manual from SG — Scanned from SG
Form analysis
1 forms found in the DOMGET
<form class="gb_Vd gb_Je" method="get" role="search"><button class="gb_He gb_Fe" aria-label="关闭搜索框" type="button"><svg focusable="false" height="24px" viewBox="0 0 24 24" width="24px" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"></path>
</svg></button>
<div class="gb_Me gb_Fe">
<div class="gb_se gb_Ne">
<div class="Mxgq5c" jscontroller="U4Hp0d" jsaction="rcuQ6b:rcuQ6b;fRPOBb:ti6hGc;isz31c:ZYIfFd;">
<div class="z67FN" jsmodel="HR544d;hTMZf;" jscontroller="NSYzcf"
jsaction="qako4e:PIe4lf;XeaEsc:Duf1af;LX8aW:yWW43c;v819Lb:hOfV5c;u7cUSb:jq3rPb;e0gSlf:hOfV5c;fRPOBb:XMgOHc;isz31c:mmPOwd;JIbuQc:dK16qf(Zf0u7b);hWyBi:D8RdGe;EI75vd:wrrLw;wmWsCf:zMecVb;bWleuc:Uwtzkb;rcuQ6b:npT2md;" jsname="haAclf"
data-action-identifier="group:conversation">
<div class="WldSub">
<div role="listbox" aria-expanded="false" class="jgvuAb ybOdnf QIGKxd" jscontroller="YwHGTd"
jsaction="click:cOuCgd(LgbsSe); keydown:I481le; keypress:Kr2w4b; mousedown:UX7yZ(LgbsSe),npT2md(preventDefault=true); mouseup:lbsD7e(LgbsSe); mouseleave:JywGue; touchstart:p6p2H(LgbsSe); touchmove:FwuNnf; touchend:yfqBxc(LgbsSe|preventMouseEvents=true|preventDefault=true); touchcancel:JMtRjd(LgbsSe); focus:AHmuwe; blur:O22p3e;b5SvAb:TvD9Pc;"
jsshadow="" jsname="Zf0u7b" aria-label="搜索范围选择器" data-aligntop="true" jslog="63658; track:JIbuQc;">
<div jsname="LgbsSe" role="presentation">
<div class="ry3kXd" jsname="d9BH4c" role="presentation">
<div class="MocG8c HZ3kWc LMgvRb KKjvXb" jsname="wQNmvb" jsaction="" data-value="" aria-selected="true" role="option" tabindex="0">
<div class="kRoyt MbhUzd" jsname="ksKsZd"></div><span jsslot="" class="vRMGwf oJeWuf">
<div class="D0vb5b">
<div class="MjWcR">会话</div>
</div>
</span>
</div>
<div class="MocG8c HZ3kWc LMgvRb" jsname="wQNmvb" jsaction="aLn7Wb:npT2md;" data-value="global_search" aria-selected="false" role="option" tabindex="-1" jslog="82538; track:aLn7Wb">
<div class="kRoyt MbhUzd" jsname="ksKsZd"></div><span jsslot="" class="vRMGwf oJeWuf">
<div class="D0vb5b">
<div class="MjWcR">所有群组和帖子</div>
</div>
</span>
</div>
</div>
<div class="e2CuFe eU809d" role="presentation"></div>
</div>
<div class="OA0qNb ncFHed QXL7Te"
jsaction="click:dPTK6c(wQNmvb); mousedown:uYU8jb(wQNmvb); mouseup:LVEdXd(wQNmvb); mouseover:nfXz1e(wQNmvb); touchstart:Rh2fre(wQNmvb); touchmove:hvFWtf(wQNmvb); touchend:MkF9r(wQNmvb|preventMouseEvents=true)" role="presentation"
jsname="V68bde" style="display:none;" soy-skip="" ssk="6:Rxil4c"></div>
</div>
</div>
<div class="oEXgee">
<div class="QRZfEc" jslog="63657; track:YPqjbf;">
<div class="L6J0Pc VOEIyf vyswdb" jscontroller="Mq9n0c" jsaction="keydown:I481le; focus: AHmuwe;AHmuwe:AHmuwe; mouseenter:npT2md;Mu8aMc:YPqjbf;Edq9ub:SDqDXe;e0gSlf:pX1iqf;" data-close-on-blur="true" jsname="h0T7hb" data-renderer="JNqlS"
data-model="HR544d">
<div class="d1dlne" jscontroller="K99qY" jsname="YPqjbf" style="position: relative" data-placeholder="在“wildfly@googlegroups.com”中搜索会话"><input class="yNVtPc ZAGvjd Ny5lGc" disabled="true" aria-hidden="true" jsname="A51lKb"
value="在“wildfly@googlegroups.com”中搜索会话" dir="ltr"><input class="Ax4B8 ZAGvjd" type="text" autocomplete="off" aria-label="在“wildfly@googlegroups.com”中搜索会话" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false"
role="combobox" jsname="dSO9oc" jsaction="input:YPqjbf; keydown:I481le; click:cOuCgd"></div>
<div class=" tWfTvb">
<div class="u3WVdc jBmls" tabindex="-1" role="listbox" data-expanded="false" data-childcount="0" jsname="iuXDpb" jsaction="mousedown:npT2md(preventDefault=true);"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div><button class="gb_Le" title="高级搜索" type="button"><svg width="24" height="24" viewBox="0 0 24 24">
<path d="M7 10l5 5 5-5H7z"></path>
<path fill="none" d="M0 0h24v24H0V0z"></path>
</svg></button><button class="gb_Ie" aria-label="清除搜索查询" type="button"><svg focusable="false" height="24px" viewBox="0 0 24 24" width="24px" xmlns="http://www.w3.org/2000/svg">
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path>
<path d="M0 0h24v24H0z" fill="none"></path>
</svg></button><button class="gb_Ee gb_Fe" aria-label="Search" role="button"><svg focusable="false" height="24px" viewBox="0 0 24 24" width="24px" xmlns="http://www.w3.org/2000/svg">
<path d="M20.49,19l-5.73-5.73C15.53,12.2,16,10.91,16,9.5C16,5.91,13.09,3,9.5,3S3,5.91,3,9.5C3,13.09,5.91,16,9.5,16 c1.41,0,2.7-0.47,3.77-1.24L19,20.49L20.49,19z M5,9.5C5,7.01,7.01,5,9.5,5S14,7.01,14,9.5S11.99,14,9.5,14S5,11.99,5,9.5z"></path>
<path d="M0,0h24v24H0V0z" fill="none"></path>
</svg></button>
</form>
Text Content
网上论坛 会话 所有群组和帖子 发送反馈给 Google 帮助 登录 网上论坛 WILDFLY 会话 关于 隐私权 • 条款 HOW TO SET SECURITY CONTEXT INFORMATION LIKE PRINCIPAL MANUALLY IN WILDFLY 26? 已查看 762 次 跳至第一个未读帖子 ARULKUMAR PONNUSAMY 未读, 2022年1月13日 23:36:422022/1/13 回复作者 登录即可回复作者 转发 登录即可转发 删除 您无权在此群组中删除帖子 复制链接 举报帖子存在滥用行为 登录即可举报帖子存在滥用行为 显示原始帖子 要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子 收件人 WildFly Hi all, we are in the process of migrating our legacy security subsystem(wildfly 24) to elytron security subsystem(wildfly 26). we have certain daemon threads which required EJB access. So, we set the security principal(default) programmatically using Picket box "SecurityContextAssociation" class. is there any similar way of setting the principal without picketbox library in latest wildfly? any reference/guide would be great help!! Thanks Arulkumar Ponnusamy!! DARRAN LOFTHOUSE 未读, 2022年1月15日 19:29:562022/1/15 回复作者 登录即可回复作者 转发 登录即可转发 删除 您无权在此群组中删除帖子 复制链接 举报帖子存在滥用行为 登录即可举报帖子存在滥用行为 显示原始帖子 要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子 收件人 WildFly Where WildFly Elytron is in use once you have a reference to a SecurityIdentity you will see it has a set of runAs methods which take some for of action or runnable: https://wildfly-security.github.io/wildfly-elytron/documentation/api/current/org/wildfly/security/auth/server/SecurityIdentity.html#runAs(java.security.PrivilegedAction) This is how threads associate the identity to be used for the task being executed. Elsewhere in your code the APIs on the SecurityDomain can be used to obtain the SecurityIdentity: https://wildfly-security.github.io/wildfly-elytron/documentation/api/current/org/wildfly/security/auth/server/SecurityDomain.html Depending on your requirements you can either authenticate against the SecurityDomain or create an adHoc identity. Within a deployment code can obtain the SecurityIdentity using the getCurrent() method: https://wildfly-security.github.io/wildfly-elytron/documentation/api/current/org/wildfly/security/auth/server/SecurityDomain.html#getCurrent() ARULKUMAR PONNUSAMY 未读, 2022年1月18日 00:06:552022/1/18 回复作者 登录即可回复作者 转发 登录即可转发 删除 您无权在此群组中删除帖子 复制链接 举报帖子存在滥用行为 登录即可举报帖子存在滥用行为 显示原始帖子 要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子 收件人 WildFly Thanks Darran for the pointer. However, i always getting SecurityDomain as null when I use SecurityDomain.getCurrent(). About my deployment, am using "Jaas-realm" and am trying to access this securityDomain from war which is deployed under the ear. any input why am not able to get the current securityDomain? ARULKUMAR PONNUSAMY 未读, 2022年1月21日 01:36:492022/1/21 回复作者 登录即可回复作者 转发 登录即可转发 删除 您无权在此群组中删除帖子 复制链接 举报帖子存在滥用行为 登录即可举报帖子存在滥用行为 显示原始帖子 要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子 收件人 WildFly can some one provide some insight on my Security.getCurrent() method returns null issues? whereas, am able to get the principal using legacy security systems. My elytron configuration <security-domains> <security-domain name="testingmigration" default-realm="migrationRealm" permission-mapper="default-permission-mapper"> <realm name="testingjaasRealm"/> </security-domain> </security-domains> <security-realms> <identity-realm name="local" identity="$local"/> <jaas-realm name=" testingjaasRealm " entry="test" module="path"> <file path="path tojaaslogin.conf"/> </jaas-realm> </security-realms> any input on this would be great help!! DIANA KREPINSKA 未读, 2022年1月21日 01:51:572022/1/21 回复作者 登录即可回复作者 转发 登录即可转发 删除 您无权在此群组中删除帖子 复制链接 举报帖子存在滥用行为 登录即可举报帖子存在滥用行为 显示原始帖子 要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子 收件人 WildFly Hello, it should not matter which security realm you are using for the Security.getCurrent() method. If the class where you are calling this method is in the web deployment then it sounds more like the the security domain is not associated with said web deployment. Maybe your ejb deployment is secured but your web deployment is not. ARULKUMAR PONNUSAMY 未读, 2022年1月21日 02:15:072022/1/21 回复作者 登录即可回复作者 转发 登录即可转发 删除 您无权在此群组中删除帖子 复制链接 举报帖子存在滥用行为 登录即可举报帖子存在滥用行为 显示原始帖子 要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子 收件人 WildFly Hi Diana, Thanks for quick reply. However, it is secured and my web.xml configuration is <login-config> <realm-name> testingjaasRealm </realm-name> </login-config> and jboss-web.xml also <security-domain flushOnSessionInvalidation="true"> testingmigration</security-domain> anything wrong on this? ARULKUMAR PONNUSAMY 未读, 2022年1月21日 02:49:522022/1/21 回复作者 登录即可回复作者 转发 登录即可转发 删除 您无权在此群组中删除帖子 复制链接 举报帖子存在滥用行为 登录即可举报帖子存在滥用行为 显示原始帖子 要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子 收件人 WildFly Hi All, The am able to get the SecurityDomain using SecurityDomain.getCurrent() Methods. Seems, some mis configuration on my standAlone.xml. However, Now, am seeing, the getCurrent() Always returns anonymous user even after i login into application. Seems, am still missing some configuration. Any input on what would be the reason for this? DIANA KREPINSKA 未读, 2022年1月21日 18:03:482022/1/21 回复作者 登录即可回复作者 转发 登录即可转发 删除 您无权在此群组中删除帖子 复制链接 举报帖子存在滥用行为 登录即可举报帖子存在滥用行为 显示原始帖子 要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子 收件人 WildFly You can try to look at this example for EJB security https://github.com/wildfly-security-incubator/elytron-examples/tree/master/ejb-security to see whether something is missing in your configuration. There is also corresponding blog post https://wildfly-security.github.io/wildfly-elytron/blog/advanced-ejb-security/ . ARULKUMAR PONNUSAMY 未读, 2022年2月1日 00:12:142022/2/1 回复作者 登录即可回复作者 转发 登录即可转发 删除 您无权在此群组中删除帖子 复制链接 举报帖子存在滥用行为 登录即可举报帖子存在滥用行为 显示原始帖子 要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子 收件人 WildFly Thanks Darran for your quick reply on my new thread. As you suggested, am continuing on this. Our application flow is: User launch the application url->servletFilter->check for session validation-> if invalid->redirect to login screen->invoke the login module->Authenticate->set the principal->continue to access the application. Both our ejb and web application are configured to use the default security domain. The current problems are, 1. The SecurityDomain.getCurrent() returns null object when i try to get SecurityDomain.getCurrent() either from war or sar. As per my understanding this is happening because, our web.xml does not contains security domains. I can't get the securityIdentity since, securitycontext is empty and i don't see any other way to get the securityIdentity. 2. Getting SecurityDomain object when it is accessed from EJB. However, the principal comes as anonymous. Am accessing using the below code. @Resource private SessionContext The only way am seeing is, create the new securityDomain if it is null and tried to create the adhocIdentity. However, this also throwing error saying unable to authenticate which i need to further investigate on the reason. Also, not sure, this is correct way of doing. Thanks Arulkumar P ARULKUMAR PONNUSAMY 未读, 2022年2月3日 18:24:042022/2/3 回复作者 登录即可回复作者 转发 登录即可转发 删除 您无权在此群组中删除帖子 复制链接 举报帖子存在滥用行为 登录即可举报帖子存在滥用行为 显示原始帖子 要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子 收件人 WildFly Any other suggestions? below code set the principal, however, the principal not getting propagated to application level.So, unable to get the logged in user info. SecurityDomain securityDomain = SecurityDomain.builder().setDefaultRealmName("default").addRealm("default", new JaasSecurityRealm("testlogin")).build() .setPermissionMapper(((permissionMappable, roles) -> LoginPermission.getInstance())) .build(); identity = securityDomain.createAdHocIdentity(tp); identity = identity.createRunAsIdentity(tp, false); Need to create new SecurityDomain everytime since, SecurityDomain.getCurrent() returns null when called from war. DIANA KREPINSKA 未读, 2022年2月21日 19:54:062022/2/21 回复作者 登录即可回复作者 转发 登录即可转发 删除 您无权在此群组中删除帖子 复制链接 举报帖子存在滥用行为 登录即可举报帖子存在滥用行为 显示原始帖子 要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子 收件人 WildFly Hello, do you have application-security-domain in ejb3 subsystem associated with Elytron's security domain? But it is difficult to know why the security information is not getting propagated to application without a reproducer or specific configuration. You can create ELY jira issue https://issues.redhat.com/projects/ELY with reproducer as well if you prefer. 回复全部 回复作者 转发 0 个新帖子 搜索 清除搜索查询 关闭搜索框 Google 应用 主菜单