Keycloak CAS Services

Extend Keycloack with CAS IDP.

License

License

Categories

Categories

KeY Data Data Formats Formal Verification Keycloak Security
GroupId

GroupId

io.github.johnjcool
ArtifactId

ArtifactId

keycloak-cas-services
Last Version

Last Version

4.8.3.Final
Release Date

Release Date

Type

Type

jar
Description

Description

Keycloak CAS Services
Extend Keycloack with CAS IDP.
Project URL

Project URL

https://github.com/johnjcool/keycloak-cas-services
Source Code Management

Source Code Management

https://github.com/johnjcool/keycloak-cas-services

Download keycloak-cas-services

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.johnjcool/keycloak-cas-services/ -->
<dependency>
    <groupId>io.github.johnjcool</groupId>
    <artifactId>keycloak-cas-services</artifactId>
    <version>4.8.3.Final</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.johnjcool/keycloak-cas-services/
implementation 'io.github.johnjcool:keycloak-cas-services:4.8.3.Final'
// https://jarcasting.com/artifacts/io.github.johnjcool/keycloak-cas-services/
implementation ("io.github.johnjcool:keycloak-cas-services:4.8.3.Final")
'io.github.johnjcool:keycloak-cas-services:jar:4.8.3.Final'
<dependency org="io.github.johnjcool" name="keycloak-cas-services" rev="4.8.3.Final">
  <artifact name="keycloak-cas-services" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.johnjcool', module='keycloak-cas-services', version='4.8.3.Final')
)
libraryDependencies += "io.github.johnjcool" % "keycloak-cas-services" % "4.8.3.Final"
[io.github.johnjcool/keycloak-cas-services "4.8.3.Final"]

Dependencies

compile (2)

Group / Artifact Type Version
org.keycloak : keycloak-saml-core-public jar
org.keycloak : keycloak-model-jpa jar

provided (5)

Group / Artifact Type Version
org.keycloak : keycloak-core jar
org.keycloak : keycloak-server-spi jar
org.keycloak : keycloak-server-spi-private jar
org.jboss.logging : jboss-logging jar
org.keycloak : keycloak-services jar

test (3)

Group / Artifact Type Version
junit : junit jar
org.jboss.resteasy : resteasy-undertow jar
io.undertow : undertow-servlet jar

Project Modules

There are no modules declared in this project.

Maven Central Build Status Quality Gate Coverage Bugs Code smells Security Rating

Keycloak CAS Services

Using as maven dependency

You can use this module as dependency in your own modules.

<dependency>
	<groupId>io.github.johnjcool</groupId>
	<artifactId>keycloak-cas-services</artifactId>
	<version>4.8.3.Final</version>
</dependency>

Manual Deployment

  1. Download keycloak version from https://www.keycloak.org/
  2. Download corresponding keycloak-cas-services version from maven central
  3. Copy keycloak-cas-services-.jar to <KEYCLOAK_INSTALLATION_DIR>/standalone/deployments
  4. Start keycloak with <KEYCLOAK_INSTALLATION_DIR>/bin/standalone.<sh|bat>
  5. Navigate to http://localhost:8080 and create an admin account

Using docker image

Start ready to use docker image:

docker run -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=xxxxxx johnjcool/keycloak-cas

Central Authentication Service Configuration

  1. Navigate to http://localhost:8080/auth/admin
  2. Login with your admin credentials
  3. Navigate to Themes Important!!! You have to do this on master realm
  4. Switch Admin Console Theme to keycloak-extended
  5. Signout
  6. Login with your admin credentials
  7. Navigate to Identity Providers
  8. Add provider CAS
  9. Configure CAS provider
  10. Click Save
  11. Navigate to Mappers to get Attributes from CAS
  12. Configure Attribute Mapper for email, firstName, lastName
  13. Signout and Central Authentication Service should be available

Optional Central Authentication Service Configuration

  1. Login with your admin credentials
  2. Navigate to Authetication
  3. Click on Actions/Config for Identity Provider Redirector
  4. Set Alias and Default Identiy Provider to cas
  5. Signout and now you are automatically redirected to CAS for Login

Have fun!

Versions

Version
4.8.3.Final
4.5.0.Final
4.4.0.Final
4.3.1.Final
4.3.0.Final
4.2.1.Final
4.2.0.Final
4.1.1.Final
4.1.0.Final