Skip to content

jerryhsia/cas-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Central Authentication Service (CAS) License

Introduction

This branch hosts the Docker build configuration to run CAS with predefined users over http or https. See the Dockerfile for more info.

Disclaimer

This README.md was changed by https://github.com/sergiofbsilva. Use it at your own risk.

Requirements

  • Minimum of Docker version 1.9.x

Configuration

Image

  • The image will be available on the host via ports 8080 and 8443
  • The image may be accessed via the host browser

CAS Overlay

  • The build will automatically copy the contents of the src\main\webapp to the docker image.

SSL

  • The default keystore is etc/thekeystore.
  • The password for the keystore is changeit.
  • It has a self-signed certificate for the name docker.local
    • update /etc/hosts using the following command line instruction
      • sudo echo "$(docker-machine ip) docker.local" > /etc/hosts
  • You can install etc/jetty.cer in your prefered browser so that it recognizes the self-signed certificate.
    • MacOSX instructions
      1. On MacOsX just run open etc/jetty.cer
      2. The KeyChain opens and asks to import file
      3. Choose System
      4. Search for docker.local and double-click it
      5. Expand Trust + SSL , set always trust

Run

#docker run -p 8080:8080 -p 8443:8443 -d --name="cas" sergiofbsilva/cas-dev ./run.sh

Usage

Users

You can login using any of the users defined in cas.properties. Just search for the following line if you need to change it

#accept.authn.users=user1::password1,user2::password2 ... accept.authn.users=admin1::admin1,admin2::admin2,admin3::admin3 

Services

This setup accepts any service URL (http or https)

Example

https://docker.local:8443/cas/login?service=https://localhost:8443/login/cas

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 67.4%
  • Dockerfile 32.6%