decidim-idcat_mobil 0.3.0 → 0.6.0
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 +1 -1
- data/app/events/decidim/idcat_mobil/verification_invalid_notification.rb +1 -1
- data/app/events/decidim/idcat_mobil/verification_success_notification.rb +1 -1
- data/app/jobs/decidim/idcat_mobil/verification_job.rb +2 -2
- data/config/initializers/omniauth_idcat_mobil.rb +3 -3
- data/lib/decidim/idcat_mobil/version.rb +2 -2
- metadata +13 -26
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5983f128175bda0abfc1f6bd8946290bbea78a00b364b97314b386301f1c4698
|
|
4
|
+
data.tar.gz: 8aed9814860f2db0a41effdfc3574200dad806b10c6be189321bfbe2fb426c0d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7204736ef0384b6729bae159b1a33c5886e16533e5cd61be687f75e71fa54181a11aa8b62990dcd2e823b0838fea9f1486b40deae3bc252bb3224dd20ee94d58
|
|
7
|
+
data.tar.gz: b10e6a9545bf96635701f90cdce10816e7dcd2a0af45465950e6778aa096d00df1f839776b26e5a11214b047a46f5629b00a87dbc0a3b1f319737213e6158eac
|
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.
|
|
@@ -25,7 +25,7 @@ module Decidim
|
|
|
25
25
|
|
|
26
26
|
# Retrieves handler from Verification workflows registry.
|
|
27
27
|
def retrieve_handler(oauth_data)
|
|
28
|
-
Decidim::AuthorizationHandler.handler_for("idcat_mobil", oauth_data:
|
|
28
|
+
Decidim::AuthorizationHandler.handler_for("idcat_mobil", oauth_data:)
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def notify_user(user, status, handler)
|
|
@@ -36,7 +36,7 @@ module Decidim
|
|
|
36
36
|
# resource: result,
|
|
37
37
|
recipient_ids: [user.id],
|
|
38
38
|
extra: {
|
|
39
|
-
status
|
|
39
|
+
status:,
|
|
40
40
|
errors: handler.errors.full_messages
|
|
41
41
|
}
|
|
42
42
|
)
|
|
@@ -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.6.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: 2025-09-29 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.29.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.29.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.29.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.29.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: omniauth-idcat_mobil
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -52,20 +52,6 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: 0.5.0
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: decidim-dev
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - ">="
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: 0.25.2
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - ">="
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: 0.25.2
|
|
69
55
|
description: User registration, login and verification though VÀLid's IdCat mòbil..
|
|
70
56
|
email:
|
|
71
57
|
- oliver.vh@coditramuntana.com
|
|
@@ -105,8 +91,9 @@ files:
|
|
|
105
91
|
homepage: https://github.com/decidim/decidim-idcat_mobil
|
|
106
92
|
licenses:
|
|
107
93
|
- AGPL-3.0
|
|
108
|
-
metadata:
|
|
109
|
-
|
|
94
|
+
metadata:
|
|
95
|
+
rubygems_mfa_required: 'true'
|
|
96
|
+
post_install_message:
|
|
110
97
|
rdoc_options: []
|
|
111
98
|
require_paths:
|
|
112
99
|
- lib
|
|
@@ -114,15 +101,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
114
101
|
requirements:
|
|
115
102
|
- - ">="
|
|
116
103
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: 2.
|
|
104
|
+
version: 3.2.9
|
|
118
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
106
|
requirements:
|
|
120
107
|
- - ">="
|
|
121
108
|
- !ruby/object:Gem::Version
|
|
122
109
|
version: '0'
|
|
123
110
|
requirements: []
|
|
124
|
-
rubygems_version: 3.
|
|
125
|
-
signing_key:
|
|
111
|
+
rubygems_version: 3.4.19
|
|
112
|
+
signing_key:
|
|
126
113
|
specification_version: 4
|
|
127
114
|
summary: A decidim idcat_mobil module
|
|
128
115
|
test_files: []
|