omniauth-proconnect 0.4 → 0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -3
- data/lib/omniauth/proconnect/version.rb +1 -1
- data/lib/omniauth/proconnect.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 22b5aa93fbeaed22dcd94aae481c679e1a7c1643fc55ab44156b5b40d57b45f0
|
|
4
|
+
data.tar.gz: 90f7a2ba844b68e401c5a6bb033fb3c52434a6d9ea96ac1bdcfb177813480103
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1e34f86a8434d76ea23fa8e838889fd64c3cdffd98a6e9746829549c3ec33482c293b5e38d99f8816cdefaba287359a58273b76bbead12d8ab8f502de3edd5a
|
|
7
|
+
data.tar.gz: 2d47a040f566c42873756f87087d05d36a4974994c67ff2ef546f6e300b213db87b89f91a4bd6b1eaff788eb6c2f97f8e5359b1ba576976c7bd052d5f9aa3d02
|
data/README.md
CHANGED
|
@@ -15,6 +15,11 @@ générique
|
|
|
15
15
|
[`omniauth_openid_connect`](https://github.com/omniauth/omniauth_openid_connect)
|
|
16
16
|
qui malgré son degré de maturité supérieure semble à l'abandon aussi.
|
|
17
17
|
|
|
18
|
+
La suite du README décrit brièvement la configuration de la librairie. Si vous
|
|
19
|
+
n'êtes pas encore familier avec OIDC et OmniAuth, un [guide complet de
|
|
20
|
+
configuration d'omniauth-proconnect est aussi disponible sur le
|
|
21
|
+
wiki](https://github.com/betagouv/omniauth-proconnect/wiki/Guide-de-connexion).
|
|
22
|
+
|
|
18
23
|
## Utilisation
|
|
19
24
|
|
|
20
25
|
Une fois que vous avez créé votre application sur [l'espace
|
|
@@ -44,7 +49,11 @@ Rails.application.config.middleware.use OmniAuth::Builder do
|
|
|
44
49
|
end
|
|
45
50
|
```
|
|
46
51
|
|
|
47
|
-
|
|
52
|
+
**⚠️ NOTE :** [La valeur de `PROCONNECT_DOMAIN` doit finir par
|
|
53
|
+
`/api/v2`](https://partenaires.proconnect.gouv.fr/docs/fournisseur-service/implementation_technique#12-valeur-de-proconnect_domain),
|
|
54
|
+
ce n'est pas seulement l'hôte. C.f https://github.com/betagouv/omniauth-proconnect/issues/5
|
|
55
|
+
|
|
56
|
+
3. envoyez votre utilisateur sur la stratégie :
|
|
48
57
|
|
|
49
58
|
```erb
|
|
50
59
|
<%= button_to "Se connecter via ProConnect", "/auth/proconnect", method: :post, remote: false, data: { turbo: false } %>
|
|
@@ -66,9 +75,9 @@ ProConnect](https://partenaires.proconnect.gouv.fr/docs/fournisseur-service/scop
|
|
|
66
75
|
sont mises à diposition dans le hash OmniAuth
|
|
67
76
|
(`request.env["omniauth.auth"]`) :
|
|
68
77
|
|
|
69
|
-
|
|
78
|
+
- la partie `info` contient tout ce qui peut être standardisé [selon
|
|
70
79
|
le Auth Hash Schema d'Omniauth](https://github.com/omniauth/omniauth/wiki/Auth-Hash-Schema)
|
|
71
|
-
|
|
80
|
+
- le reste/l'intégralité est disponible dans `extra`.
|
|
72
81
|
|
|
73
82
|
Exemple :
|
|
74
83
|
|
data/lib/omniauth/proconnect.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-proconnect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.5'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stéphane Maniaci
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-05
|
|
10
|
+
date: 2025-11-05 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: faraday
|