| 1 |
Pro Santé Connect |
| 2 |
================= |
| 3 |
|
| 4 |
|logo| |
| 5 |
|
| 6 |
Presentation |
| 7 |
------------ |
| 8 |
|
| 9 |
`Pro Santé Connect <https://tech.esante.gouv.fr/outils-services/pro-sante-connect-e-cps/presentation-generale>`__ is |
| 10 |
a French identity provider for healthcare professionals. It relies on OpenID Connect protocol. |
| 11 |
|
| 12 |
Register on Pro Santé Connect |
| 13 |
----------------------------- |
| 14 |
|
| 15 |
Once :doc:`OpenID Connect service<openidconnectservice>` is configured, |
| 16 |
you need to register to Pro Santé Connect. |
| 17 |
|
| 18 |
Go on https://integrateurs-cps.asipsante.fr. |
| 19 |
|
| 20 |
You need to provide the callback URLs, for example |
| 21 |
https://auth.domain.com/?openidconnectcallback=1. |
| 22 |
|
| 23 |
And also a logout URL, for example |
| 24 |
https://auth.domain.com/?logout=1. |
| 25 |
|
| 26 |
You will then get a ``client_id`` and a ``client_secret``. |
| 27 |
|
| 28 |
Declare Pro Santé Connect in your LL::NG server |
| 29 |
----------------------------------------------- |
| 30 |
|
| 31 |
Go in Manager and create a new OpenID Connect provider. You can call it |
| 32 |
``psc-connect`` for example. |
| 33 |
|
| 34 |
Click on ``Metadata`` and set manually the metadata of the service. |
| 35 |
|
| 36 |
For the sandbox server: |
| 37 |
|
| 38 |
.. code-block:: javascript |
| 39 |
|
| 40 |
{ |
| 41 |
"issuer": "https://auth.bas.esw.esante.gouv.fr/auth/realms/esante-wallet", |
| 42 |
"authorization_endpoint": "https://wallet.bas.esw.esante.gouv.fr/auth", |
| 43 |
"token_endpoint": "https://auth.bas.esw.esante.gouv.fr/auth/realms/esante-wallet/protocol/openid-connect/token", |
| 44 |
"introspection_endpoint": "https://auth.bas.esw.esante.gouv.fr/auth/realms/esante-wallet/protocol/openid-connect/token/introspect", |
| 45 |
"userinfo_endpoint": "https://auth.bas.esw.esante.gouv.fr/auth/realms/esante-wallet/protocol/openid-connect/userinfo", |
| 46 |
"end_session_endpoint": "https://auth.bas.esw.esante.gouv.fr/auth/realms/esante-wallet/protocol/openid-connect/logout", |
| 47 |
"jwks_uri": "https://auth.bas.esw.esante.gouv.fr/auth/realms/esante-wallet/protocol/openid-connect/certs", |
| 48 |
"check_session_iframe": "https://auth.bas.esw.esante.gouv.fr/auth/realms/esante-wallet/protocol/openid-connect/login-status-iframe.html", |
| 49 |
"grant_types_supported": [ |
| 50 |
"authorization_code", |
| 51 |
"implicit", |
| 52 |
"refresh_token", |
| 53 |
"password", |
| 54 |
"client_credentials" |
| 55 |
], |
| 56 |
"response_types_supported": [ |
| 57 |
"code", |
| 58 |
"none", |
| 59 |
"id_token", |
| 60 |
"token", |
| 61 |
"id_token token", |
| 62 |
"code id_token", |
| 63 |
"code token", |
| 64 |
"code id_token token" |
| 65 |
], |
| 66 |
"subject_types_supported": [ |
| 67 |
"public", |
| 68 |
"pairwise" |
| 69 |
], |
| 70 |
"id_token_signing_alg_values_supported": [ |
| 71 |
"PS384", |
| 72 |
"ES384", |
| 73 |
"RS384", |
| 74 |
"HS256", |
| 75 |
"HS512", |
| 76 |
"ES256", |
| 77 |
"RS256", |
| 78 |
"HS384", |
| 79 |
"ES512", |
| 80 |
"PS256", |
| 81 |
"PS512", |
| 82 |
"RS512" |
| 83 |
], |
| 84 |
"id_token_encryption_alg_values_supported": [ |
| 85 |
"RSA-OAEP", |
| 86 |
"RSA1_5" |
| 87 |
], |
| 88 |
"id_token_encryption_enc_values_supported": [ |
| 89 |
"A256GCM", |
| 90 |
"A192GCM", |
| 91 |
"A128GCM", |
| 92 |
"A128CBC-HS256", |
| 93 |
"A192CBC-HS384", |
| 94 |
"A256CBC-HS512" |
| 95 |
], |
| 96 |
"userinfo_signing_alg_values_supported": [ |
| 97 |
"PS384", |
| 98 |
"ES384", |
| 99 |
"RS384", |
| 100 |
"HS256", |
| 101 |
"HS512", |
| 102 |
"ES256", |
| 103 |
"RS256", |
| 104 |
"HS384", |
| 105 |
"ES512", |
| 106 |
"PS256", |
| 107 |
"PS512", |
| 108 |
"RS512", |
| 109 |
"none" |
| 110 |
], |
| 111 |
"request_object_signing_alg_values_supported": [ |
| 112 |
"PS384", |
| 113 |
"ES384", |
| 114 |
"RS384", |
| 115 |
"HS256", |
| 116 |
"HS512", |
| 117 |
"ES256", |
| 118 |
"RS256", |
| 119 |
"HS384", |
| 120 |
"ES512", |
| 121 |
"PS256", |
| 122 |
"PS512", |
| 123 |
"RS512", |
| 124 |
"none" |
| 125 |
], |
| 126 |
"response_modes_supported": [ |
| 127 |
"query", |
| 128 |
"fragment", |
| 129 |
"form_post" |
| 130 |
], |
| 131 |
"registration_endpoint": "https://auth.bas.esw.esante.gouv.fr/auth/realms/esante-wallet/clients-registrations/openid-connect", |
| 132 |
"token_endpoint_auth_methods_supported": [ |
| 133 |
"private_key_jwt", |
| 134 |
"client_secret_basic", |
| 135 |
"client_secret_post", |
| 136 |
"tls_client_auth", |
| 137 |
"client_secret_jwt" |
| 138 |
], |
| 139 |
"token_endpoint_auth_signing_alg_values_supported": [ |
| 140 |
"PS384", |
| 141 |
"ES384", |
| 142 |
"RS384", |
| 143 |
"HS256", |
| 144 |
"HS512", |
| 145 |
"ES256", |
| 146 |
"RS256", |
| 147 |
"HS384", |
| 148 |
"ES512", |
| 149 |
"PS256", |
| 150 |
"PS512", |
| 151 |
"RS512" |
| 152 |
], |
| 153 |
"claims_supported": [ |
| 154 |
"aud", |
| 155 |
"sub", |
| 156 |
"iss", |
| 157 |
"auth_time", |
| 158 |
"name", |
| 159 |
"given_name", |
| 160 |
"family_name", |
| 161 |
"preferred_username", |
| 162 |
"email", |
| 163 |
"acr" |
| 164 |
], |
| 165 |
"claim_types_supported": [ |
| 166 |
"normal" |
| 167 |
], |
| 168 |
"claims_parameter_supported": false, |
| 169 |
"scopes_supported": [ |
| 170 |
"openid", |
| 171 |
"address", |
| 172 |
"email", |
| 173 |
"identity", |
| 174 |
"microprofile-jwt", |
| 175 |
"offline_access", |
| 176 |
"phone", |
| 177 |
"profile", |
| 178 |
"roles", |
| 179 |
"scope_1", |
| 180 |
"scope_2", |
| 181 |
"scope_all", |
| 182 |
"web-origins", |
| 183 |
"eidas2" |
| 184 |
], |
| 185 |
"request_parameter_supported": true, |
| 186 |
"request_uri_parameter_supported": true, |
| 187 |
"code_challenge_methods_supported": [ |
| 188 |
"plain", |
| 189 |
"S256" |
| 190 |
], |
| 191 |
"tls_client_certificate_bound_access_tokens": true |
| 192 |
} |
| 193 |
|
| 194 |
You should alos import JWKS data from https://auth.bas.esw.esante.gouv.fr/auth/realms/esante-wallet/protocol/openid-connect/certs |
| 195 |
directly in configuration to avoid requests to reload them. |
| 196 |
|
| 197 |
Go in ``Exported attributes`` to choose which attributes you want to collect. |
| 198 |
Read the technical documentation to know available attributes: |
| 199 |
https://tech.esante.gouv.fr/outils-services/pro-sante-connect-e-cps/documentation-technique |
| 200 |
|
| 201 |
Now go in ``Options``: |
| 202 |
|
| 203 |
- Register the ``client_id`` and ``client_secret`` given by Pro Santé Connect |
| 204 |
- In ``Scopes`` set ``openid scope_all`` |
| 205 |
- In ``ACR values`` set ``eidas2`` |
| 206 |
- You can also set the name and the logo |
| 207 |
|
| 208 |
.. |logo| image:: /applications/prosanteconnect_logo.png |
| 209 |
:class: align-center |