https://github.com/v5tech/cas-oauth-example-3.5.x
cas通用公共组件,基于数据库和oauth认证。
https://github.com/v5tech/cas-oauth-example-3.5.x
Last synced: 8 months ago
JSON representation
cas通用公共组件,基于数据库和oauth认证。
- Host: GitHub
- URL: https://github.com/v5tech/cas-oauth-example-3.5.x
- Owner: v5tech
- License: mit
- Created: 2014-09-26T09:02:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-03-10T15:02:34.000Z (almost 10 years ago)
- Last Synced: 2025-05-08T06:04:15.410Z (8 months ago)
- Language: Java
- Homepage:
- Size: 36.1 KB
- Stars: 7
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
- License: LICENSE
Awesome Lists containing this project
README
h2. What is this project ?
This project *cas-oauth-example-3.5.x* has been created to test the OAuth support in *CAS server version 3.5.x with x >= 1*. It's composed of two modules :
- the *cas-oauth-client-example-3.5.x* module is a CAS server which uses the OAuth client mode : it acts as a client to delegate authentication to Facebook, Twitter... : "https://wiki.jasig.org/display/CASUM/Configuration+for+the+OAuth+client+support+in+CAS+server+version+%3E%3D+3.5.1":https://wiki.jasig.org/display/CASUM/Configuration+for+the+OAuth+client+support+in+CAS+server+version+%3E%3D+3.5.1
- the *cas-oauth-server-example-3.5.x* module is a CAS server which uses the OAuth server mode : it plays the role of an OAuth server : "https://wiki.jasig.org/display/CASUM/Configuration+for+the+OAuth+server+support":https://wiki.jasig.org/display/CASUM/Configuration+for+the+OAuth+server+support.
h2. Quick start & test
To start quickly, build the project :
cd cas-oauth-example-3.5.x
mvn clean install
and start the two web applications with jetty :cd cas-oauth-client-example-3.5.x
mvn jetty:run
To test,
- call the "http://localhost:8080/cas":http://localhost:8080/cas url and click on "Authenticate with ..." (at CAS server in OAuth client mode)
- authenticate at your favorite OAuth provider (Facebook, Twitter...) or at the OAuth wrapped CAS server (same password as login, url : _http://localhost:8080/cas2_)
- be redirected to the first CAS server, being successfully authenticated.
h2. Manual deployment
You can also deploy manually these two web applications in your favorite web applications server :
- cas-oauth-client-example-3.5.x on http://localhost:8080/cas
- cas-oauth-server-example-3.5.x on http://localhost:8080/cas2