From e574c92f983d291a724b48c712b2cb493495eb4c Mon Sep 17 00:00:00 2001 From: olevitt Date: Wed, 20 Nov 2019 20:29:50 +0100 Subject: [PATCH] #18 - Setup CI / CD (#19) * Setup CI Signed-off-by: Olivier Levitt --- .travis.yml | 20 ++++++++++++++++++++ README.en.md | 19 +++++++++---------- README.md | 12 +++++++----- 3 files changed, 36 insertions(+), 15 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5f73a34 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: java +jdk: + - openjdk8 + +before_install: + - mvn -B versions:set -DnewVersion=$TRAVIS_BRANCH + +script: + - mvn -B package + +deploy: + skip_cleanup: true + provider: releases + edge: true + token: + secure: "eZb6nhIbDlgI5jjK9lS8F/F/TQ8Ign5ij3REpv1D4q6j9nz973aoeQiWzx+wg1h/pG7VMSIvfJIF8MxaQCQY26KbBeMgXQpQVAZxK2P2U0SL58l5kzR8uCyC1YgQnrdSpI/W4IYGgQofJGwYOgKcg3hkismCxRfkYsVBdzndcDAvyHGQoEuAVARFkcgI2eeWxW42tMkHmRBtUdl+zULHlaZYe8A4IMCN6h9zBhzYbxVFsx7NdoCRvZxelPTKQum++bsXwSQo2tVYREMpe6BDuBQ1CYo4B0r/ThyULlx6OB9i3V8ttYB0QkRQKLhtIMtz7u9o/ruLtFCiuRTz4X0XEMAWNr+EkLzMDXjA2919FteXCx1TOYtbVy8t4ersP48DuZhUwYKXPK9zQU9Vz08eLpEY7m6boih2YFvNhhR4FKcRelOaEYtjy4dwsGv5c1Ovwzg4RLupccVMZG2TsnvXM5izmiczYl9ia/TogbyScFzHbaJMQY9yEh+JG3Ls6X9jtqTsUuR3KQGIg3v4ASgQsS39Dra5RIhUdSNF3BYL9YbcqICambyzNmRys2S8psIzEiTxGw2ikYbRSTUOk/Al/PT7WY4WhucFeQHc+57+uu33TA8dkwHStpehWG7DUtHa5ZtHfBlSJrvp7pa6qw8jylJxNc86+CrFwFJihndXSe8=" + file_glob: true + file: target/*.jar + on: + tags: true diff --git a/README.en.md b/README.en.md index 295cc5c..fab0dce 100644 --- a/README.en.md +++ b/README.en.md @@ -1,14 +1,15 @@ - # keycloak-franceconnect France Connect Openid-Connect Provider for Keycloak +[![Build Status](https://travis-ci.org/inseefr/Keycloak-FranceConnect.svg?branch=master)](https://travis-ci.org/inseefr/Keycloak-FranceConnect) + ## Features -* add missing signature verification (based on client-secret) -* add custom Theme with FranceConnect buttons -* add a better management for logout (https://issues.jboss.org/browse/KEYCLOAK-7209) -* add support for the user account warranty level required on authorization request ( cf [communication FranceConnect] (https://dev.entrouvert.org/issues/34448) ) +- add missing signature verification (based on client-secret) +- add custom Theme with FranceConnect buttons +- add a better management for logout (https://issues.jboss.org/browse/KEYCLOAK-7209) +- add support for the user account warranty level required on authorization request ( cf [communication FranceConnect](https://dev.entrouvert.org/issues/34448) ) ## How to use it @@ -22,7 +23,6 @@ mvn clean install wildfly:deploy :warning: There was a problem with keycloak version `4.8.0.Final`, please use `4.8.1.Final` - Once the jar has been deployed, you can create a new "Identity Provider" (in a new realm preferably). In the drop-down list, you can choose between two providers that represent the production environment and the france connect test environment. The latter can be used with an account created on https://partenaires.franceconnect.gouv.fr/. :warning: If you already have a configured FranceConnect Identity Provider, You will need to configure the new eIDAS level in it's configuration. @@ -33,11 +33,11 @@ Once chosen the provider, you arrive on the following page: You can change the settings as you want, except for the alias that must remain this one, in case you want to take advantage of the theme offered by this extension (if not, you can change it as you see fit). -On this page is also the redirection uri you will need to enter on the France Connect partner portal (here: `http://localhost:8080/auth/realms/franceconnect/broker/franceconnect-particular-test/endpoint`). The redirection uri for the logout is built from the previous one by adding `/logout_response` (here:`http://localhost:8080/auth/realms/franceconnect/broker/franceconnect-particular-test/endpoint/logout_response `). +On this page is also the redirection uri you will need to enter on the France Connect partner portal (here: `http://localhost:8080/auth/realms/franceconnect/broker/franceconnect-particular-test/endpoint`). The redirection uri for the logout is built from the previous one by adding `/logout_response` (here:`http://localhost:8080/auth/realms/franceconnect/broker/franceconnect-particular-test/endpoint/logout_response`). -Once validated, you can add the mappers needed to retrieve the attributes you want from [claims provided by France Connect] (https://partenaires.franceconnect.gouv.fr/fcp/profisseur-service). +Once validated, you can add the mappers needed to retrieve the attributes you want from [claims provided by France Connect](https://partenaires.franceconnect.gouv.fr/fcp/profisseur-service). -To test, you can choose the theme `fc-theme` for the realm, then go to the address:` https:///auth/realms//account`: +To test, you can choose the theme `fc-theme` for the realm, then go to the address:`https:///auth/realms//account`: ![Keycloak-fc-login](/assets/keycloak-fc-login.PNG) @@ -75,4 +75,3 @@ a.zocial.franceconnect-particulier span{ ## How to contribute [See here](CONTRIBUTING.en.md) - diff --git a/README.md b/README.md index dfabe87..ea75966 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,14 @@ Extension [keycloak](https://www.keycloak.org) pour faciliter l'usage de France Connect +[![Build Status](https://travis-ci.org/inseefr/Keycloak-FranceConnect.svg?branch=master)](https://travis-ci.org/inseefr/Keycloak-FranceConnect) + ## Fonctionnalités -* ajout de la vérification de signature (basée sur le client-secret) -* ajout d'un theme pour afficher les boutons france connect -* meilleure gestion du logout (contourne https://issues.jboss.org/browse/KEYCLOAK-7209) -* gestion du niveau d'authentification dans la demande d'autorisation ( cf [communication FranceConnect](https://dev.entrouvert.org/issues/34448) ) +- ajout de la vérification de signature (basée sur le client-secret) +- ajout d'un theme pour afficher les boutons france connect +- meilleure gestion du logout (contourne https://issues.jboss.org/browse/KEYCLOAK-7209) +- gestion du niveau d'authentification dans la demande d'autorisation ( cf [communication FranceConnect](https://dev.entrouvert.org/issues/34448) ) ## Utilisation @@ -37,7 +39,7 @@ Sur cette page se trouve aussi l'uri de redirection qu'il vous faudra entrer sur Une fois validé, vous pouvez ajouter les mappers nécessaires pour récupérer les attributs que vous souhaitez à partir [des claims fournis par France Connect](https://partenaires.franceconnect.gouv.fr/fcp/fournisseur-service). -Pour tester, vous pouvez choisir le theme `fc-theme` pour le realm, puis vous rendre sur l'adresse : `https:///auth/realms//account` : +Pour tester, vous pouvez choisir le theme `fc-theme` pour le realm, puis vous rendre sur l'adresse : `https:///auth/realms//account` : ![keycloak-fc-login](/assets/keycloak-fc-login.PNG)