Giter VIP home page Giter VIP logo

java-jasig-cas-client-demo's Introduction

java-jasig-cas-client-demo

Demo using the Jasig / Apereo CAS client in Java to protect a web application.

Using mvn clean compile jetty:run, the webapp is started on http://localhost:8080. The url 'protected/index.jsp' is protected and should trigger a CAS authentication.

Most of the configuration is defined in the src/main/webapp/WEB-INF/web.xml file. Use your own CAS in the cloud server

Although the configuration may handle logout requests directly from the CAS server, the logout is performed by calling the http://localhost:8080/logout.jsp url from the logout page of the CAS server (in the browser) as the CAS server is obviously not able to contact directly your localhost:8080. It would work with a real public hostname.

==

Démo utilisant le client CAS Jasig / Apereo en Java pour protéger une application web.

En utilisant mvn clean compile jetty:run, le site web est lancé sur http://localhost:8080. L'url 'protected/index.jsp' est protégée et déclenche une authentification CAS.

L'essentiel de la configuration est défini dans le fichier src/main/webapp/WEB-INF/web.xml. Utilisez votre propre serveur CAS in the cloud

Bien que la configuration puisse gérer les requêtes de déconnexion directement depuis le serveur CAS, la déconnexion est faîte en appelant l'url http://localhost:8080/logout.jsp depuis la page de déconnexion du serveur CAS (dans le navigateur) car le serveur CAS n'est évidemment pas capable de contacter directement votre localhost:8080. Cela fonctionnerait avec un vrai hostname public.

java-jasig-cas-client-demo's People

Contributors

adrianchia avatar leleuj avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.