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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7f69d22759a84bda39c5b20a6d631c116ddecf85ad9e0f64039a11f3e4fbf98
4
- data.tar.gz: 625c7d42937c3cdb64c1dd1b85b61f72ddf606ee1ebedea30253b3979b5cf2e5
3
+ metadata.gz: 22b5aa93fbeaed22dcd94aae481c679e1a7c1643fc55ab44156b5b40d57b45f0
4
+ data.tar.gz: 90f7a2ba844b68e401c5a6bb033fb3c52434a6d9ea96ac1bdcfb177813480103
5
5
  SHA512:
6
- metadata.gz: 7730f981481a35c7987dc1f1756715ddf773182fc3f7f0ee502237899e46aa9c05d3219a8bb63ef951728711cd9f334e5a79ba0ec603d1f891e1c93ef7ec3f19
7
- data.tar.gz: ffeab52d87c2ec7043de16c4dadcf66c4bbb534b4b02b79818772345b96807a7da1d2f703d50c98ff98d64535f73d9696067d834550a404092afdac395705654
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
- 3. envoyez votre utilisateur sur la stratégie :
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
- * la partie `info` contient tout ce qui peut être standardisé [selon
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
- * le reste/l'intégralité est disponible dans `extra`.
80
+ - le reste/l'intégralité est disponible dans `extra`.
72
81
 
73
82
  Exemple :
74
83
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omniauth
4
4
  class Proconnect
5
- VERSION = "0.4"
5
+ VERSION = "0.5"
6
6
  end
7
7
  end
@@ -72,6 +72,8 @@ module OmniAuth
72
72
 
73
73
  def connection
74
74
  @connection ||= Faraday.new(url: options[:proconnect_domain]) do |c|
75
+ c.request :url_encoded
76
+
75
77
  c.response :json
76
78
  c.response :raise_error
77
79
  end
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'
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-23 00:00:00.000000000 Z
10
+ date: 2025-11-05 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: faraday