Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAAS Application to secure EJB

 
SnehalPatil
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we propagate Security Subject from web Container to Ejb container?If yes which are the necessary policy,permission or any addition setting required in Glass Fish. Because I have developed one "J A A S application" in net beans, server is Glass Fish.But still I can't able to get subject at bean level where in Servlet I am getting subject through logincontext and through same servlet I am calling bean method.where I want to take the principal using Session Context Object.But it's coming Anonymous.what is the problem here.
 
Luciano A. Pozzo
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi SnehalSnehal Patil,

i beleive that you should look for Single Sign-On.

https://glassfish.dev.java.net/javaee5/security/faq.html#sso
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic