hmm,

to do it by call you need to create an InitialContext yourself each time
(not a big deal, can even be a CDI producer normally ;).

About the EJB client API design: once logged no more login should be done
again by default (without the previous property) but it leads often to
issues cause security frameworks really often use ThreadLocal so relogin is
a better solution in general.

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/8/27 hwaastad <[email protected]>

> Hi, and thank for your answer
> I'm on 1.6.0-SNAPSHOT.
>
> I did try to use the initialcontext setup as diplayed in your post (without
> the jackson serializer)
> and I can verify that the authentication is run on all lookups.
> I'm one step closer :-)
>
> I've configured mappednames on @ejb's and jndiprovider:
>
> <JndiProvider id="TestContext" type="javax.naming.InitialContext">
>         java.naming.provider.url = http://192.168.122.68:8080/tomee/ejb
>         java.naming.factory.initial =
> org.apache.openejb.client.RemoteInitialContextFactory
>         openejb.ejbd.authenticate-with-request = true
>         openejb.authentication.realmName = SmartGuestRealm
>         java.naming.security.principal = important-user
>         java.naming.security.credentials = important-user-password
>     </JndiProvider>
>
> However, this will always use this user and I want to propagate the user
> authroized in the web container. Is this possible?
>
> I'm not sure if it's by design or if its by spec, but is every remote call
> supposed to be authenticated?
>
> br hw
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Propagated-security-in-TomEE-tp4664850p4664853.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to