permaculture playing cards*
The moose likes JBoss/WildFly and the fly likes Problem JASS with JBOSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Problem JASS with JBOSS" Watch "Problem JASS with JBOSS" New topic
Author

Problem JASS with JBOSS

druon antoine
Greenhorn

Joined: Mar 04, 2004
Posts: 1
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem JASS with JBOSS
 
Similar Threads
JAAS- "No LoginModule found for ur jaas_configinfo!"
auth-method none? for a JBoss simple SSO using digital signature?
Problems with Form Based Authentication
Very frustrated with no idea how to check logins
JAAS With JBOSS: My How-To Tutorial