-
1. Re: Securityproxy and external applications
shack Nov 5, 2002 6:44 AM (in response to kakoni)First of all, you have to put the principal in your client application into a org/jboss/security/SecurityAssociation object. With each request from your application, JBoss will automatically receive the user principal.
After that you can call EJBContext.getCallerPrincipal() in your security proxy. It's just the same way you use it inside an EJB. -
2. Re: Securityproxy and external applications
shack Nov 5, 2002 6:46 AM (in response to kakoni)First of all, you have to put the principal in your client application into a org/jboss/security/SecurityAssociation object. With each request from your application, JBoss will automatically receive the user principal.
After that you can call EJBContext.getCallerPrincipal() in your security proxy. It's just the same way you use it inside an EJB. -
3. Re: Securityproxy and external applications
shack Nov 5, 2002 9:10 AM (in response to kakoni)First of all, you have to put the principal in your client application into a
org/jboss/security/SecurityAssociation object. With each request from your
application, JBoss will automatically receive the user principal.
After that you can call EJBContext.getCallerPrincipal() in your security proxy.
It's just the same way you use it inside an EJB.