https://github.com/sismics/play-cas
This module adds CAS support to Play! Framework 1 applications.
https://github.com/sismics/play-cas
authentication cas module play play-framework sso
Last synced: about 1 year ago
JSON representation
This module adds CAS support to Play! Framework 1 applications.
- Host: GitHub
- URL: https://github.com/sismics/play-cas
- Owner: sismics
- License: apache-2.0
- Created: 2019-02-28T10:19:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T17:18:54.000Z (almost 2 years ago)
- Last Synced: 2024-09-17T21:39:20.221Z (almost 2 years ago)
- Topics: authentication, cas, module, play, play-framework, sso
- Language: Java
- Size: 13.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/sismics/play-cas/releases/latest)
[](https://opensource.org/licenses/Apache-2.0)
# play-cas plugin
This plugin adds [CAS](https://en.wikipedia.org/wiki/Central_Authentication_Service) support to Play! Framework 1 applications.
# Features
# How to use
#### Add the dependency to your `dependencies.yml` file
```
require:
- cas -> cas 1.4.0
repositories:
- sismicsNexusRaw:
type: http
artifact: "https://nexus.sismics.com/repository/sismics/[module]-[revision].zip"
contains:
- cas -> *
```
#### Set configuration parameters
Add the following parameters to **application.conf**:
```
# CAS configuration
# ~~~~~~~~~~~~~~~~~~~~
cas.mock=false
cas.url=https://cas.example.com/cas
cas.service=http://service.example.com/login
```
#### Validate your ticket
```
String login = Cas.get().getValidationService().validate(ticket);
```
#### Mock the CAS server in dev
We recommand to mock CAS in development mode and test profile.
Use the following configuration parameter:
```
cas.mock=true
```
# License
This software is released under the terms of the Apache License, Version 2.0. See `LICENSE` for more
information or see .