| 1 |
Confluence |
| 2 |
========== |
| 3 |
|
| 4 |
Presentation |
| 5 |
------------ |
| 6 |
|
| 7 |
Confluence is a web-based corporate wiki developed by Atlassian. |
| 8 |
|
| 9 |
It is compatible with SAML and OpenID Connect. This tutorial will focus on SAML. |
| 10 |
|
| 11 |
Configuration |
| 12 |
------------- |
| 13 |
|
| 14 |
You must first configure LemonLDAP::NG as a :doc:`SAML Identity Provider<../idpsaml>`. |
| 15 |
|
| 16 |
Configure SAML in Confluence |
| 17 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 18 |
|
| 19 |
In the SSO configuration page, choose SAML as the authentication method. And set the following parameters. |
| 20 |
|
| 21 |
Don't forget to replace ``auth.example.com`` with your actual domain. |
| 22 |
|
| 23 |
* Single sign on issuer: ``https://auth.example.com/saml/metadata`` |
| 24 |
* Identity provider single sign on URL: ``https://auth.example.com/saml/singleSignOn`` |
| 25 |
* X.509 certificate: You can find this certificate in the manager: SAML2 Service » Security » Signature » Public key |
| 26 |
* Username mapping attribute: ``${uid}`` |
| 27 |
|
| 28 |
.. danger:: Make sure the certificate you copy into Confluence starts with BEGIN CERTIFICATE and not with BEGIN PRIVATE KEY |
| 29 |
|
| 30 |
Write down the *Assertion Consumer Service URL* and the *Audience URL*, that Confluence is showing you, you will need it to configure LemonLDAP::NG |
| 31 |
|
| 32 |
Configure LemonLDAP::NG |
| 33 |
~~~~~~~~~~~~~~~~~~~~~~~ |
| 34 |
|
| 35 |
In the LemonLDAP::NG Manager, create a new *SAML Service Provider* |
| 36 |
|
| 37 |
In *Metadata*, copy the following XML document, and don't forget to change ``AUDIENCE_URL`` and ``CONSUMER_SERVICE_URL`` the URLs with the values given by Confluence. |
| 38 |
|
| 39 |
:: |
| 40 |
|
| 41 |
<?xml version="1.0"?> |
| 42 |
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" |
| 43 |
entityID="AUDIENCE_URL"> |
| 44 |
<md:SPSSODescriptor |
| 45 |
AuthnRequestsSigned="false" |
| 46 |
WantAssertionsSigned="false" |
| 47 |
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"> |
| 48 |
<md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</md:NameIDFormat> |
| 49 |
<md:AssertionConsumerService |
| 50 |
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" |
| 51 |
Location="CONSUMER_SERVICE_URL" |
| 52 |
index="1"/> |
| 53 |
</md:SPSSODescriptor> |
| 54 |
</md:EntityDescriptor> |
| 55 |
|
| 56 |
In *Exported Attributes*, add a new attribute: |
| 57 |
|
| 58 |
* Variable name: the session variable containing user logins |
| 59 |
* Attribute name: ``uid`` |
| 60 |
* Mandatory: ``On`` |
| 61 |
|
| 62 |
Finally, in *Options* » *Signature*, set |
| 63 |
|
| 64 |
* Check SSO message signature: Off |
| 65 |
* Check SLO message signature: Off |