This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WebService secure EJB endpoint access from standalone client

 
a sarkar
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a long time since I last posted here.
I have a WebService EJB3 endpoint secured using @DeclareRoles and @RolesAllowed. As allowed by Java EE 6, the bean is packaged as a war. I deployed it in GF 3.1 but I can't get a standalone client to successfully invoke the secure method. The client keeps getting a not authorized exception. I have, of course, created user "user" in GF, assigned "user" to group "AppUser", enabled security manager and default principal to role mapping. I also tried mapping the application role "AppUser" with GF group "AppUser" without any success.
Has anyone else faced a similar problem or have any ideas?



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic