CAS Mock

Mock CAS Server for use in testing.

License

License

Categories

Categories

CLI User Interface Eureka Container Microservices
GroupId

GroupId

org.eurekaclinical
ArtifactId

ArtifactId

cas-mock
Last Version

Last Version

2.4
Release Date

Release Date

Type

Type

war
Description

Description

CAS Mock
Mock CAS Server for use in testing.
Project URL

Project URL

https://github.com/eurekaclinical/cas-mock.git
Project Organization

Project Organization

Emory University
Source Code Management

Source Code Management

https://github.com/eurekaclinical/cas-mock.git

Download cas-mock

How to add to project

<!-- https://jarcasting.com/artifacts/org.eurekaclinical/cas-mock/ -->
<dependency>
    <groupId>org.eurekaclinical</groupId>
    <artifactId>cas-mock</artifactId>
    <version>2.4</version>
    <type>war</type>
</dependency>
// https://jarcasting.com/artifacts/org.eurekaclinical/cas-mock/
implementation 'org.eurekaclinical:cas-mock:2.4'
// https://jarcasting.com/artifacts/org.eurekaclinical/cas-mock/
implementation ("org.eurekaclinical:cas-mock:2.4")
'org.eurekaclinical:cas-mock:war:2.4'
<dependency org="org.eurekaclinical" name="cas-mock" rev="2.4">
  <artifact name="cas-mock" type="war" />
</dependency>
@Grapes(
@Grab(group='org.eurekaclinical', module='cas-mock', version='2.4')
)
libraryDependencies += "org.eurekaclinical" % "cas-mock" % "2.4"
[org.eurekaclinical/cas-mock "2.4"]

Dependencies

compile (4)

Group / Artifact Type Version
org.eurekaclinical : javautil jar 4.5
com.sun.xml.bind : jaxb-core jar 2.3.0.1
javax.xml.bind : jaxb-api jar 2.3.1
com.sun.xml.bind : jaxb-impl jar 2.3.1

provided (1)

Group / Artifact Type Version
javax.servlet : javax.servlet-api jar 4.0.1

Project Modules

There are no modules declared in this project.

Mock Eureka! Clinical Central Authentication Service

Georgia Clinical and Translational Science Alliance (Georgia CTSA), Emory University, Atlanta, GA

What does it do?

It provides a mock CAS server for system tests of Eureka! Clinical components. It responds to the following CAS protocol version 2 URLs:

  • /login (it auto authenticates the user as the superuser)
  • /logout
  • /serviceValidate
  • /proxy
  • /proxyValidate

The responses are hard-coded.

Latest release: Latest release

Version 2.1

Support proxy callbacks, which are needed for proxy support to work.

Version 2.0

No feature changes. This release only updates dependencies.

Version 1.0

Initial release. Supports all features of CAS that Eureka! Clinical uses.

Build requirements

Runtime requirements

Building it

The project uses the maven build tool. Typically, you build it by invoking mvn clean install at the command line. For simple file changes, not additions or deletions, you can usually use mvn install. See https://github.com/eurekaclinical/dev-wiki/wiki/Building-Eureka!-Clinical-projects for more details.

Installation

This project is intended for other Eureka! Clinical web applications to depend on it for running in embedded Tomcat. All that is needed is for the tomcat maven plugin to add it as a dependency, and for Eureka! Clinical web applications to use https://localhost:8443/cas-mock as the CAS server URL.

For standalone deployment, do the following:

  1. Stop Tomcat.
  2. Remove any old copies of the unpacked war from Tomcat's webapps directory.
  3. Copy the warfile into the Tomcat webapps directory, renaming it to remove the version. For example, rename cas-mock-1.0.war to cas-mock.war.
  4. Start Tomcat.

Maven dependency

<dependency>
    <groupId>org.eurekaclinical</groupId>
    <artifactId>cas-mock</artifactId>
    <version>version</version>
</dependency>

Developer documentation

Getting help

Feel free to contact us at [email protected].

org.eurekaclinical

Eureka! Clinical

Microservices for clinical and translational research

Versions

Version
2.4
2.3
2.1
2.1-Beta-1
2.0
1.0
1.0-Alpha-3
1.0-Alpha-2
1.0-Alpha-1