Skip to content

Commit

Permalink
#18 - Setup CI / CD (#19)
Browse files Browse the repository at this point in the history
* Setup CI

Signed-off-by: Olivier Levitt <[email protected]>
  • Loading branch information
olevitt authored and micedre committed Nov 20, 2019
1 parent 5c17b6d commit e574c92
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 15 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
19 changes: 9 additions & 10 deletions README.en.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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.
Expand All @@ -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://<keycloak>/auth/realms/<realm>/account`:
To test, you can choose the theme `fc-theme` for the realm, then go to the address:`https://<keycloak>/auth/realms/<realm>/account`:

![Keycloak-fc-login](/assets/keycloak-fc-login.PNG)

Expand Down Expand Up @@ -75,4 +75,3 @@ a.zocial.franceconnect-particulier span{
## How to contribute

[See here](CONTRIBUTING.en.md)

12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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://<keycloak>/auth/realms/<realm>/account` :
Pour tester, vous pouvez choisir le theme `fc-theme` pour le realm, puis vous rendre sur l'adresse : `https://<keycloak>/auth/realms/<realm>/account` :

![keycloak-fc-login](/assets/keycloak-fc-login.PNG)

Expand Down

0 comments on commit e574c92

Please sign in to comment.