Code Monkey home page Code Monkey logo

franceconnect-poc-cas's Introduction

Intégration FranceConnect dans CAS

Pourquoi ce POC ?

L'objectif est de poursuivre le travail de la journée chez Octo pour voir les moyens d'intégrer FranceConnect dasn CAS.

  • la connexion
  • la déconnexion
  • l'usage des scopes
  • utilisation du kit FranceConnect

Ce POC se positionne en tant que Fournisseur de services.

Pré-requis

Nous devez créer un compte FranceConnect. Pour cela, il faut aller à l'url suivante : https://doc.integ01.dev-franceconnect.fr

Après avoir créer le compte, il est nécessaire de configurer le compte (https://doc.integ01.dev-franceconnect.fr/updateClient). Pour cela, il y a notamment les callbacks à configurer

Il est possible de définir plusieurs urls callbacks. Dans ce cas, il faut une url par ligne.

Initialisation

Pour faire fonctionner l'application :

  • cloner le dépôt git

  • configurer le fichier /src/main/webapp/openidc/certs

  • configurer le fichier /src/main/webapp/WEB-INF/spring-configuration/pac4jContext.xml

  • lancer tomcat :

    mvn tomcat:run

Scénario

Connexion depuis cas

Connection depuis une application casifiée

  • Vous basculez sur le serveur cas
  • Vous vous identifiez
  • Vous revenez sur la page initialement demandé.

Reste à faire

  • Transmettre les attributs au client CAS
  • Gérer la déconnexion pour proposer la déconnexion au niveau de FranceConnect

Ressources

Ce projet utilise pac4j (https://github.com/pac4j/pac4j/)

Le code du projet suivant a été réutilisé :

https://github.com/leleuj/cas-pac4j-oauth-demo

Nous utilisons le client oidc de la librairie pac4j. Cependant, FranceConnect n'a pas de service discovery comme on le trouve pour Google par exemple Pour l'instant, l'url est statique. Il sera nécessaire de le rendre configurable

franceconnect-poc-cas's People

Contributors

lilian-benoit avatar

Watchers

 avatar  avatar

Forkers

imc-rd

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.