panga / jboss-security-extended Goto Github PK
View Code? Open in Web Editor NEWJBoss Security Extended
License: Apache License 2.0
JBoss Security Extended
License: Apache License 2.0
Hi. Big thanks for this WA.
I use it? but found some problem after logout. If i call
org.jboss.security.SecurityContextAssociation#clearSecurityContext
for thread with original Subject, webscoket still provide Principal and Roles about user that was already logout. In case with backgroud repetable tasks it not so good. I can't find any WA for it. May be have any idea?
Hi,
We are using jboss 6.4.7 and a standard MessageListener with the following configuration using your JmsSecurityInterceptor:
@MessageDriven(name = "ExportMDB", activationConfig =
{ @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "java:/jms/queue/ExportRequestQ") })
@singleton
@startup
@TransactionAttribute(TransactionAttributeType.REQUIRED)
@interceptors(JmsSecurityInterceptor.class)
While executing onMessage on the JMS MDB the SecurityActions class/setSubjectInfo method is called and the following line returns securityContext null and later we get NullPointerException error when the securityContext is referenced:
final SecurityContext securityContext = SecurityContextAssociation.getSecurityContext();
Can you recommend a solution to this issue?
Does it make sense to create a SecurityContext if non exists for the MDB? This the solution we are using and I can create a patch with that change and add it to the project if you agree to this solution.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.