| 1 |
Guacamole |
| 2 |
========= |
| 3 |
|
| 4 |
|image0| |
| 5 |
|
| 6 |
Presentation |
| 7 |
------------ |
| 8 |
|
| 9 |
`Apache Guacamole <https://guacamole.apache.org/>`__ is a web-based |
| 10 |
remote desktop gateway. It supports standard protocols like VNC, RDP, |
| 11 |
and SSH. |
| 12 |
|
| 13 |
As of version 0.9.14, Guacamole can use |
| 14 |
:doc:`OpenID Connect<../idpopenidconnect>` , :doc:`CAS<../idpcas>` or |
| 15 |
:doc:`HTTP Headers<../writingrulesand_headers>` as authentication |
| 16 |
sources through plug-ins. |
| 17 |
|
| 18 |
This document explains how to implement OpenID Connect |
| 19 |
|
| 20 |
Pre-requisites |
| 21 |
-------------- |
| 22 |
|
| 23 |
.. _guacamole-1: |
| 24 |
|
| 25 |
Guacamole |
| 26 |
~~~~~~~~~ |
| 27 |
|
| 28 |
Refer to `the official Guacamole |
| 29 |
documentation <http://guacamole.apache.org/doc/gug/>`__ to install |
| 30 |
Guacamole, either manually or through Docker images |
| 31 |
|
| 32 |
You need to be able to enable extensions. If you are using docker, you |
| 33 |
need to `follow these instructions in order to provide your own |
| 34 |
extensions directory and Guacamole configuration |
| 35 |
file <http://guacamole.apache.org/doc/gug/guacamole-docker.html#guacamole-docker-guacamole-home>`__ |
| 36 |
|
| 37 |
Your Guacamole configuration directory will look something like this. |
| 38 |
|
| 39 |
:: |
| 40 |
|
| 41 |
├── extensions |
| 42 |
│ └── 00-guacamole-auth-openid-1.0.0.jar |
| 43 |
└── guacamole.properties |
| 44 |
|
| 45 |
|
| 46 |
.. danger:: |
| 47 |
|
| 48 |
Make sure to rename the JAR in a way that `ensures that it |
| 49 |
will be loaded |
| 50 |
first <https://lists.apache.org/thread.html/b781a5c4e4d14f7ce297200ba6886d888df4333f83836220ac8b69f1@%3Cuser.guacamole.apache.org%3E>`__\ |
| 51 |
|
| 52 |
And ``guacamole.properties`` should contain at least |
| 53 |
|
| 54 |
:: |
| 55 |
|
| 56 |
openid-authorization-endpoint: http://auth.example.com/oauth2/authorize |
| 57 |
openid-jwks-endpoint: http://auth.example.com/oauth2/jwks |
| 58 |
openid-issuer: http://auth.example.com |
| 59 |
openid-client-id: guacamole |
| 60 |
openid-redirect-uri: http://guacamole.example.com/guacamole/ |
| 61 |
openid-username-claim-type: sub |
| 62 |
|
| 63 |
|
| 64 |
.. tip:: |
| 65 |
|
| 66 |
Remplace the ``redirect uri`` with your Guacamole server's URL |
| 67 |
|
| 68 |
|
| 69 |
LL:NG |
| 70 |
~~~~~ |
| 71 |
|
| 72 |
Make sure you have already |
| 73 |
:doc:`enabled OpenID Connect<../idpopenidconnect>` on your LemonLDAP::NG |
| 74 |
server |
| 75 |
|
| 76 |
You also need to allow the ``Implicit Flow`` under |
| 77 |
``OpenID Connect Service`` » ``Security`` |
| 78 |
|
| 79 |
Then, add a Relying Party with the following configuration |
| 80 |
|
| 81 |
- Options » Authentification » Client ID : same as ``openid-client-id`` |
| 82 |
in ``guacamole.properties`` |
| 83 |
- Options » Allowed redirection address : same as |
| 84 |
``openid-redirect-uri`` in ``guacamole.properties`` |
| 85 |
- Options » ID Token Signature Algorithm : ``RS512`` |
| 86 |
|
| 87 |
.. |image0| image:: /applications/guacamole.png |
| 88 |
:class: align-center |
| 89 |
|