omniauth-proconnect 0.4 → 0.6

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: c1f87d13a2e678546ccc37eea832e4650649788420b7acad1e4e4725b35f3e86
4
+ data.tar.gz: aa2fc28689dd2cea28f28f0cda36cd96f2dab9e9ff941dee2fd9aff2e5c1b4dd
5
5
  SHA512:
6
- metadata.gz: 7730f981481a35c7987dc1f1756715ddf773182fc3f7f0ee502237899e46aa9c05d3219a8bb63ef951728711cd9f334e5a79ba0ec603d1f891e1c93ef7ec3f19
7
- data.tar.gz: ffeab52d87c2ec7043de16c4dadcf66c4bbb534b4b02b79818772345b96807a7da1d2f703d50c98ff98d64535f73d9696067d834550a404092afdac395705654
6
+ metadata.gz: 439befd183ae09dc7a71ca8e39744cf920ff64558e06ececdbff7ffcc8186a2f23fe70632e27f6a5f633de9fb3e0d798c307324318b8a474240961298e53cf6e
7
+ data.tar.gz: fc1be33d0cbdc41081cd9306df2989a0c6886a6fe5c8661347b2bc8be872bd44c1eacd24609890bc4c57889e0eef14bbf6ad711f8bbe0fdb25517ed7641b54f0
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.6"
6
6
  end
7
7
  end
@@ -21,10 +21,6 @@ module OmniAuth
21
21
  option :post_logout_redirect_uri
22
22
  option :scope, "openid email given_name usual_name"
23
23
 
24
- def setup_phase
25
- discover_endpoint!
26
- end
27
-
28
24
  def request_phase
29
25
  redirect(authorization_uri)
30
26
  end
@@ -72,6 +68,8 @@ module OmniAuth
72
68
 
73
69
  def connection
74
70
  @connection ||= Faraday.new(url: options[:proconnect_domain]) do |c|
71
+ c.request :url_encoded
72
+
75
73
  c.response :json
76
74
  c.response :raise_error
77
75
  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.6'
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: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: faraday
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  requirements: []
93
- rubygems_version: 3.6.2
93
+ rubygems_version: 4.0.6
94
94
  specification_version: 4
95
95
  summary: An OmniAuth strategy for ProConnect
96
96
  test_files: []