Skip to content

hereon-wpi/tomcat-auth-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Download

Usage

PlainText

via properties:

PlainText plainText = PlainText.fromProperties(tomcat, loginProperties);
plainText.configure();

where loginProperties:

tomcat.user.ingvord=test
tomcat.roles.ingvord=desy-user

here roles must match security roles in web.xml

Kerberos (DESY specific)

Kerberos kerberos = new Kerberos(tomcat, "PreExperimentDataCollector");
kerberos.configure();

jaas.conf file must be present in the classpath:

src/main/resources/jaas.conf

PreExperimentDataCollector {
  de.hzg.wpi.utils.authorization.KerberosLoginModule required debug=true;
};

NOTE module name corresponds to the second parameter in the Kerberos constructor

LIMITATION only users with role desy-user will pass authorization. Update web.xml accordingly.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages