• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem JASS with JBOSS

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
excuse me I know this problem is recurrent but I have a problem with authentication process.
I have a problem when I create loginContext in my application.
Maybe you can help me :
I create auth.conf
MyLogin
{
//Login Module Needed - I use Database (Note it correlates to what I had in login-config.xml
org.jboss.security.auth.spi.DatabaseServerLoginModule required;
};
//NOT 100% SURE IF THIS IS NEEDED, SINCE I HAVEN'T DONE THIS IN A WHILE AND I FORGET,
//BUT IT'S IN MY FILE (Although I think it's not needed)
other
{
//DEFAULT CLIENT-LOGIN MODULE
org.jboss.security.ClientLoginModule required;
};
i create a policy :grant codebase "file:./*" { permission javax.security.auth.AuthPermission "createLoginContext.MyLogin";
When i did in my code this method :
loginContext = new LoginContext( "MyLogin", ( CallbackHandler ) handler );
I receive a message : access denied (javax.security.auth.AuthPermission createLoginContext.MyLogin)
I don't understand because i have a policy text with allpermission.

arguments when i compile are : -Djava.security.policy=ourtest.policy.txt -Djava.security.manager -Djava.security.auth.login.config=auth.conf.txt

thanks for your help
 
Yup, yup, yup. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic