An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

[![GitHub release](https://img.shields.io/github/release/sismics/play-cas.svg?style=flat-square)](https://github.com/sismics/play-cas/releases/latest)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](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 .