decidim-idcat_mobil 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/config/initializers/omniauth_idcat_mobil.rb +3 -3
- data/lib/decidim/idcat_mobil/version.rb +2 -2
- metadata +15 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a927c46e7526679976cc90ba4177fab538391701909048db1e633833812c739
|
4
|
+
data.tar.gz: 6e4daa2b14aac1694f959394a35eafe44a6e9ea7e9fafa6fc88892610885fa9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e61b85ffc84b1a35a04e718736115c51363f330911b78d4b0a06477598c17fd1b97745c30e7ddf344fdaaeccb8d6ae84ce9ee3dd08f4d72da781bcc27fd34ef0
|
7
|
+
data.tar.gz: 742948914bdc94ce92ceecefcfd2659647412440c49b480f3a20e996f252c5a38fb400285c39064a452c708240c108b23f947bcd979dd9a979b6813b792319bf
|
data/README.md
CHANGED
@@ -31,7 +31,7 @@ Check how to configure the strategy in [Decidim's related documentation](https:/
|
|
31
31
|
omniauth:
|
32
32
|
idcat_mobil:
|
33
33
|
enabled: true
|
34
|
-
icon_path:
|
34
|
+
icon_path: media/images/idcat_mobil-icon.svg
|
35
35
|
```
|
36
36
|
|
37
37
|
Remember to set `IDCAT_MOBIL_CLIENT_ID`, `IDCAT_MOBIL_CLIENT_SECRET` and `IDCAT_MOBIL_SITE_URL` environment variables.
|
@@ -10,9 +10,9 @@ if Rails.application.secrets.dig(:omniauth, :idcat_mobil).present?
|
|
10
10
|
request = Rack::Request.new(env)
|
11
11
|
organization = Decidim::Organization.find_by(host: request.host)
|
12
12
|
provider_config = organization.enabled_omniauth_providers[:idcat_mobil]
|
13
|
-
env["omniauth.strategy"].options[:client_id] = provider_config[:client_id] || ENV
|
14
|
-
env["omniauth.strategy"].options[:client_secret] = provider_config[:client_secret] || ENV
|
15
|
-
env["omniauth.strategy"].options[:site] = provider_config[:site_url] || ENV
|
13
|
+
env["omniauth.strategy"].options[:client_id] = provider_config[:client_id] || ENV.fetch("IDCAT_MOBIL_CLIENT_ID", nil)
|
14
|
+
env["omniauth.strategy"].options[:client_secret] = provider_config[:client_secret] || ENV.fetch("IDCAT_MOBIL_CLIENT_SECRET", nil)
|
15
|
+
env["omniauth.strategy"].options[:site] = provider_config[:site_url] || ENV.fetch("IDCAT_MOBIL_SITE_URL", nil)
|
16
16
|
},
|
17
17
|
scope: :autenticacio_usuari
|
18
18
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-idcat_mobil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oliver Valls
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.27.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.27.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: decidim-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.27.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.27.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: omniauth-idcat_mobil
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.27.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.27.0
|
69
69
|
description: User registration, login and verification though VÀLid's IdCat mòbil..
|
70
70
|
email:
|
71
71
|
- oliver.vh@coditramuntana.com
|
@@ -105,8 +105,9 @@ files:
|
|
105
105
|
homepage: https://github.com/decidim/decidim-idcat_mobil
|
106
106
|
licenses:
|
107
107
|
- AGPL-3.0
|
108
|
-
metadata:
|
109
|
-
|
108
|
+
metadata:
|
109
|
+
rubygems_mfa_required: 'true'
|
110
|
+
post_install_message:
|
110
111
|
rdoc_options: []
|
111
112
|
require_paths:
|
112
113
|
- lib
|
@@ -114,15 +115,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
115
|
requirements:
|
115
116
|
- - ">="
|
116
117
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
118
|
+
version: 3.0.6
|
118
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
120
|
requirements:
|
120
121
|
- - ">="
|
121
122
|
- !ruby/object:Gem::Version
|
122
123
|
version: '0'
|
123
124
|
requirements: []
|
124
|
-
rubygems_version: 3.
|
125
|
-
signing_key:
|
125
|
+
rubygems_version: 3.2.33
|
126
|
+
signing_key:
|
126
127
|
specification_version: 4
|
127
128
|
summary: A decidim idcat_mobil module
|
128
129
|
test_files: []
|