io.rtdi.hanaappserver:hanarealm

Tomcat Hana Realm

License

License

Categories

Categories

Realm Data Databases
GroupId

GroupId

io.rtdi.hanaappserver
ArtifactId

ArtifactId

hanarealm
Last Version

Last Version

0.8.5
Release Date

Release Date

Type

Type

jar
Description

Description

io.rtdi.hanaappserver:hanarealm
Tomcat Hana Realm
Project URL

Project URL

https://www.rtdi.io/
Source Code Management

Source Code Management

https://github.com/rtdi/hanaappserverrealm

Download hanarealm

How to add to project

<!-- https://jarcasting.com/artifacts/io.rtdi.hanaappserver/hanarealm/ -->
<dependency>
    <groupId>io.rtdi.hanaappserver</groupId>
    <artifactId>hanarealm</artifactId>
    <version>0.8.5</version>
</dependency>
// https://jarcasting.com/artifacts/io.rtdi.hanaappserver/hanarealm/
implementation 'io.rtdi.hanaappserver:hanarealm:0.8.5'
// https://jarcasting.com/artifacts/io.rtdi.hanaappserver/hanarealm/
implementation ("io.rtdi.hanaappserver:hanarealm:0.8.5")
'io.rtdi.hanaappserver:hanarealm:jar:0.8.5'
<dependency org="io.rtdi.hanaappserver" name="hanarealm" rev="0.8.5">
  <artifact name="hanarealm" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.rtdi.hanaappserver', module='hanarealm', version='0.8.5')
)
libraryDependencies += "io.rtdi.hanaappserver" % "hanarealm" % "0.8.5"
[io.rtdi.hanaappserver/hanarealm "0.8.5"]

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.tomcat : tomcat-catalina jar 9.0.16
com.sap.cloud.db.jdbc : ngdbc jar 2.4.59

test (1)

Group / Artifact Type Version
junit : junit jar 4.13-beta-3

Project Modules

There are no modules declared in this project.

SAP Hana Application Server Realm

The security foundation for the SAP Hana Application Server

A tomcat realm allows to configure various authentication methods and groups. This HanaRealm is using the SAP Hana database to authenticate, meaning the user is requested in the browser to enter his Hana login and password and if valid, the list of assigned Hana groups is read. Thus tomcat can utilize these group names in the standard way to implement role level security.

Installation

Copy the jar file into tomcat's lib folder so that it can be used in the server configuration.

In the server.xml of the tomcat the realm is configured, with the parameter hanaJDBCURL as the only property to be specified.

	<Server>
	  <Service>
	    <Engine>
	      ...
	      <Realm className="org.apache.catalina.realm.LockOutRealm">
	        <Realm className="io.rtdi.hanaappserver.hanarealm.HanaRealm" hanaJDBCURL="jdbc:sap://hanartdi:39015/HXE"/>
	      </Realm>
	      ...
	    </Engine>
	  </Service>
	</Server>

Alternatively, the environment variable HANAJDBCURL can be set as well. This is especially useful when building docker images.

Versions

Version
0.8.5
0.8.4
0.8.3