decidim-trusted_ids 0.12.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.
Files changed (63) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE-AGPLv3.txt +661 -0
  3. data/README.md +344 -0
  4. data/Rakefile +40 -0
  5. data/app/commands/concerns/decidim/trusted_ids/system/create_organization_override.rb +22 -0
  6. data/app/commands/concerns/decidim/trusted_ids/system/needs_census_config.rb +29 -0
  7. data/app/commands/concerns/decidim/trusted_ids/system/update_organization_override.rb +21 -0
  8. data/app/controllers/concerns/decidim/trusted_ids/admin/impersonations_controller_override.rb +31 -0
  9. data/app/controllers/concerns/decidim/trusted_ids/check_existing_authorizations.rb +40 -0
  10. data/app/controllers/concerns/decidim/trusted_ids/check_omniauth_email_on_login.rb +25 -0
  11. data/app/controllers/concerns/decidim/trusted_ids/needs_trusted_ids_snippets.rb +26 -0
  12. data/app/events/decidim/trusted_ids/verifications/invalid_notification.rb +10 -0
  13. data/app/events/decidim/trusted_ids/verifications/success_notification.rb +33 -0
  14. data/app/forms/concerns/decidim/trusted_ids/system/organization_form_override.rb +93 -0
  15. data/app/forms/decidim/trusted_ids/verifications/trusted_ids_handler.rb +65 -0
  16. data/app/forms/decidim/via_oberta/verifications/via_oberta_handler.rb +103 -0
  17. data/app/jobs/decidim/trusted_ids/application_job.rb +8 -0
  18. data/app/jobs/decidim/trusted_ids/omniauth_verification_job.rb +76 -0
  19. data/app/jobs/decidim/trusted_ids/system/propagate_census_config_job.rb +29 -0
  20. data/app/jobs/decidim/trusted_ids/system/propagate_census_settings_job.rb +29 -0
  21. data/app/models/concerns/decidim/trusted_ids/authorization_override.rb +21 -0
  22. data/app/models/concerns/decidim/trusted_ids/organization_override.rb +17 -0
  23. data/app/models/decidim/trusted_ids/organization_config.rb +20 -0
  24. data/app/overrides/decidim/devise/sessions/new/add_trusted_id_buttons.html.erb.deface +3 -0
  25. data/app/overrides/decidim/devise/sessions/new/wrap_default_login_form.html.erb.deface +4 -0
  26. data/app/overrides/decidim/devise/shared/_omniauth_buttons/replace_button_content.html.erb.deface +17 -0
  27. data/app/overrides/decidim/devise/shared/_omniauth_buttons/skip_trusted_ids_provider.html.erb.deface +3 -0
  28. data/app/overrides/decidim/system/organizations/_advanced_settings/settings_form.html.erb.deface +3 -0
  29. data/app/overrides/decidim/system/organizations/_omniauth_provider/add_icon_placeholder.html.erb.deface +3 -0
  30. data/app/overrides/layouts/decidim/_head/add_trusted_ids_tags.html.erb.deface +11 -0
  31. data/app/packs/entrypoints/decidim_trusted_ids.js +3 -0
  32. data/app/packs/images/idcat_mobil-icon.svg +8 -0
  33. data/app/packs/images/valid-icon.png +0 -0
  34. data/app/packs/stylesheets/decidim/trusted_ids/oauth_icons.scss +75 -0
  35. data/app/services/decidim/via_oberta/api/request.rb +156 -0
  36. data/app/services/decidim/via_oberta/api/response.rb +67 -0
  37. data/app/views/decidim/trusted_ids/devise/sessions/_login_box.html.erb +30 -0
  38. data/app/views/decidim/trusted_ids/system/organizations/_icon_path_placeholder.html.erb +10 -0
  39. data/app/views/decidim/trusted_ids/system/organizations/_settings_form.html.erb +25 -0
  40. data/app/views/decidim/trusted_ids/verifications/_form.html.erb +39 -0
  41. data/app/views/decidim/via_oberta/verifications/_form.html.erb +56 -0
  42. data/config/assets.rb +16 -0
  43. data/config/i18n-tasks.yml +12 -0
  44. data/config/locales/ca.yml +132 -0
  45. data/config/locales/de.yml +168 -0
  46. data/config/locales/en.yml +169 -0
  47. data/config/locales/es.yml +132 -0
  48. data/config/locales/fr.yml +168 -0
  49. data/config/locales/it.yml +168 -0
  50. data/config/locales/oc.yml +132 -0
  51. data/config/locales/zz_fallbacks.rb +45 -0
  52. data/db/migrate/20230718082548_create_organization_trusted_ids_config.rb +14 -0
  53. data/lib/decidim/trusted_ids/engine.rb +181 -0
  54. data/lib/decidim/trusted_ids/test/factories.rb +21 -0
  55. data/lib/decidim/trusted_ids/verifications.rb +10 -0
  56. data/lib/decidim/trusted_ids/version.rb +10 -0
  57. data/lib/decidim/trusted_ids.rb +69 -0
  58. data/lib/omniauth/strategies/valid.rb +134 -0
  59. data/lib/omniauth/strategies.rb +7 -0
  60. data/lib/tasks/decidim_trusted_ids_upgrade_tasks.rake +5 -0
  61. data/package-lock.json +29154 -0
  62. data/package.json +43 -0
  63. metadata +200 -0
@@ -0,0 +1,168 @@
1
+ ---
2
+ de:
3
+ activemodel:
4
+ errors:
5
+ messages:
6
+ invalid_icon_path_format: must be in the format media/images/filename
7
+ icon_path_not_found: the icon file does not exist in the registered asset paths
8
+ attributes:
9
+ trusted_ids_census_config:
10
+ census_expiration_apply_all_tenants: 'Apply to all tenants (this will set
11
+ the same expiration days for all organizations in this platform). Warning:
12
+ empty values are also propagated'
13
+ census_tos_apply_all_tenants: 'Apply to all tenants (this will set the same
14
+ "Terms of service" for all organizations in this platform). Warning: empty
15
+ values are also propagated'
16
+ settings:
17
+ expiration_days: Expires in (days). If empty, defaults to %{days} days.
18
+ ine: Requester identifier (INE)
19
+ municipal_code: Municipal code
20
+ nif: NIF
21
+ organization_name: Public organization name
22
+ province_code: Province code
23
+ tos: Terms of service for consulting the census
24
+ tos_if_empty_html: 'If empty, the default terms of service will be extracted
25
+ from the I18n key <code>decidim.via_oberta.verifications.tos.content_html</code>.
26
+ Currently:'
27
+ via_oberta_handler:
28
+ document_type: 'Could not be obtained automatically. Please select one from
29
+ the list:'
30
+ decidim:
31
+ authorization_handlers:
32
+ trusted_ids_handler:
33
+ explanation: This authorization is granted to all users who use a login method
34
+ with a trusted identifier.
35
+ fields:
36
+ extra: Additional information
37
+ provider: Provider
38
+ uid: ID
39
+ name: Trusted identifier
40
+ via_oberta_handler:
41
+ explanation: This authorization is granted to all users who are in the Via
42
+ Oberta census database.
43
+ fields:
44
+ document_id: DNI/NIF
45
+ name: Via Oberta
46
+ events:
47
+ trusted_ids:
48
+ verifications:
49
+ invalid:
50
+ email_intro: It has not been possible to grant you the "%{handler_name}"
51
+ authorization.
52
+ email_outro: Please, contact the support at your platform to check what
53
+ has gone wrong.
54
+ email_subject: Authorization error
55
+ notification_title: Invalid authorization with the "%{handler_name}" method
56
+ ok:
57
+ email_intro: You have been granted the "%{handler_name}" authorization.
58
+ email_outro: You can now perform all actions that require the "%{handler_name}"
59
+ authorization.
60
+ email_subject: Authorization successful
61
+ notification_title: Successful authorization with the "%{handler_name}"
62
+ method
63
+ system:
64
+ organizations:
65
+ omniauth_settings:
66
+ valid:
67
+ client_id: Client ID
68
+ client_secret: Client secret
69
+ icon_path: Icon path. If is empty, the default icon will be used.
70
+ scope: Scope
71
+ site: Provider URL
72
+ trusted_ids:
73
+ devise:
74
+ sessions:
75
+ new:
76
+ login: Log in
77
+ login_subtitle: Log in to Decidim and participate.
78
+ unverified_login: Other unverified identification methods
79
+ verified_identity: Digital identity verified with %{provider}
80
+ verified_identity_html: |
81
+ <p>Access with systems recognized by official providers that certify your identity on the network, for more secure authentications.</p>
82
+ <ul>
83
+ <li>idCat Mòbil</li>
84
+ <li>idCat Certificat</li>
85
+ <li>DNIe</li>
86
+ <li>Cl@ve PIN</li>
87
+ </ul>
88
+ verified_login: Continue with verified identification
89
+ providers:
90
+ default:
91
+ description: This authorization is granted to all users who use a login
92
+ method with a trusted identifier.
93
+ name: Trusted identifier
94
+ valid:
95
+ description: VÀLid is a service that AOC provides to Catalan public administrations
96
+ to integrate the different available digital identification mechanisms (idCAT
97
+ Mòbil, digital certificates and Cl@ve).
98
+ name: VÀLid
99
+ sessions:
100
+ different_omniauth_emails: You are trying to sign in with a different email
101
+ than the one in your account. Please sign in with the same email or log
102
+ out and sign up directly to create a new user.
103
+ system:
104
+ settings: "%{handler} settings"
105
+ verifications:
106
+ form:
107
+ cancel: Cancel verification
108
+ description_html: In order to obtain this authorization, you need to verify
109
+ your identity with the %{provider} service. To do that, please click on
110
+ the "%{link}" button.<br><br>
111
+ error_provider_html: "<b>%{provider} is not available.</b> It seems that
112
+ this login/authorization method has not been enabled. Please contact the
113
+ support team to fix this."
114
+ warning_html: Please make sure that the email you have in this application
115
+ (<em>%{email}</em>) is the same as the one provided by the %{provider}
116
+ service. Otherwise the verification will fail.
117
+ verifications:
118
+ authorizations:
119
+ errors:
120
+ already_verified: You have already verified your identity with this method.
121
+ pending_authorization: This authorization method requires having the %{handler_name}
122
+ authorization previously granted.
123
+ first_login:
124
+ actions:
125
+ trusted_ids_generic: Verify with %{provider}
126
+ via_oberta_handler: Verify with Via Oberta
127
+ trusted_ids:
128
+ errors:
129
+ invalid_census: Could not verify you. The data provided to the census gateway
130
+ might not be valid.
131
+ invalid_id: Could not verify you. The document identifier is invalid or
132
+ not present in the census.
133
+ invalid_method: Could not verify you. OAuth2 verification method is not
134
+ supported.
135
+ invalid_status: Could not verify you. OAuth2 verification was not ok.
136
+ invalid_type: Could not verify you. The document type is invalid or not
137
+ present in the census.
138
+ no_identity: Could not verify you. OAuth2 verification did not return an
139
+ identification.
140
+ via_oberta:
141
+ verifications:
142
+ document_type:
143
+ nie: NIE
144
+ nif: NIF
145
+ others: Residence permit or others
146
+ passport: Passport
147
+ form:
148
+ code: 'Error code: %{code}'
149
+ data: 'Data that will be sent:'
150
+ description_html: <p>This authorization checks if you are in the <b>%{organization_name}</b>
151
+ census database.</p> <p>To perform this check, the following information
152
+ will be sent to the <a href="https://www.aoc.cat/serveis-aoc/via-oberta/"
153
+ target="_blank">Via Oberta Service</a>, provided by the <a href="https://www.aoc.cat"
154
+ target="_blank">Administració Oberta de Catalunya</a></p> <p>This information
155
+ will be used for the sole purpose of verifying your identity but records
156
+ of this transaction might be kept by the service provider.</p>
157
+ document_id: Document Number
158
+ document_type: Document type
159
+ error: 'Service error message:'
160
+ tos:
161
+ agreement: I accept the terms of use and service conditions
162
+ content_html: |
163
+ <p>In order to verify that you are registered as a person in the municipality, an automated query must be made through Via Oberta to the local data of the municipal population register.</p>
164
+ <ol>
165
+ <li>You can consult the specific data processing/protection policy at the <a href="https://www.aoc.cat/proteccio-dades/">following link</a></li>
166
+ <li>Do you give your consent?</li>
167
+ </ol>
168
+ title: Via Oberta terms of use and service
@@ -0,0 +1,169 @@
1
+ ---
2
+ en:
3
+ activemodel:
4
+ attributes:
5
+ trusted_ids_census_config:
6
+ census_expiration_apply_all_tenants: 'Apply to all tenants (this will set
7
+ the same expiration days for all organizations in this platform). Warning:
8
+ empty values are also propagated'
9
+ census_tos_apply_all_tenants: 'Apply to all tenants (this will set the same
10
+ "Terms of service" for all organizations in this platform). Warning: empty
11
+ values are also propagated'
12
+ settings:
13
+ expiration_days: Expires in (days). If empty, defaults to %{days} days.
14
+ ine: Requester identifier (INE)
15
+ municipal_code: Municipal code
16
+ nif: NIF
17
+ organization_name: Public organization name
18
+ province_code: Province code
19
+ tos: Terms of service for consulting the census
20
+ tos_if_empty_html: 'If empty, the default terms of service will be extracted
21
+ from the I18n key <code>decidim.via_oberta.verifications.tos.content_html</code>.
22
+ Currently:'
23
+ via_oberta_handler:
24
+ document_type: 'Could not be obtained automatically. Please select one from
25
+ the list:'
26
+ errors:
27
+ messages:
28
+ icon_path_not_found: the icon file does not exist in the registered asset
29
+ paths
30
+ invalid_icon_path_format: must be in the format media/images/filename
31
+ decidim:
32
+ authorization_handlers:
33
+ trusted_ids_handler:
34
+ explanation: This authorization is granted to all users who use a login method
35
+ with a trusted identifier.
36
+ fields:
37
+ extra: Additional information
38
+ provider: Provider
39
+ uid: ID
40
+ name: Trusted identifier
41
+ via_oberta_handler:
42
+ explanation: This authorization is granted to all users who are in the Via
43
+ Oberta census database.
44
+ fields:
45
+ document_id: DNI/NIF
46
+ name: Via Oberta
47
+ events:
48
+ trusted_ids:
49
+ verifications:
50
+ invalid:
51
+ email_intro: It has not been possible to grant you the "%{handler_name}"
52
+ authorization.
53
+ email_outro: Please, contact the support at your platform to check what
54
+ has gone wrong.
55
+ email_subject: Authorization error
56
+ notification_title: Invalid authorization with the "%{handler_name}" method
57
+ ok:
58
+ email_intro: You have been granted the "%{handler_name}" authorization.
59
+ email_outro: You can now perform all actions that require the "%{handler_name}"
60
+ authorization.
61
+ email_subject: Authorization successful
62
+ notification_title: Successful authorization with the "%{handler_name}"
63
+ method
64
+ system:
65
+ organizations:
66
+ omniauth_settings:
67
+ valid:
68
+ client_id: Client ID
69
+ client_secret: Client secret
70
+ icon_path: Icon path. If is empty, the default icon will be used.
71
+ scope: Scope
72
+ site: Provider URL
73
+ trusted_ids:
74
+ devise:
75
+ sessions:
76
+ new:
77
+ login: Log in
78
+ login_subtitle: Log in to Decidim and participate.
79
+ unverified_login: Other unverified identification methods
80
+ verified_identity: Digital identity verified with %{provider}
81
+ verified_identity_html: |
82
+ <p>Access with systems recognized by official providers that certify your identity on the network, for more secure authentications.</p>
83
+ <ul>
84
+ <li>idCat Mòbil</li>
85
+ <li>idCat Certificat</li>
86
+ <li>DNIe</li>
87
+ <li>Cl@ve PIN</li>
88
+ </ul>
89
+ verified_login: Continue with verified identification
90
+ providers:
91
+ default:
92
+ description: This authorization is granted to all users who use a login
93
+ method with a trusted identifier.
94
+ name: Trusted identifier
95
+ valid:
96
+ description: VÀLid is a service that AOC provides to Catalan public administrations
97
+ to integrate the different available digital identification mechanisms
98
+ (idCAT Mòbil, digital certificates and Cl@ve).
99
+ name: VÀLid
100
+ sessions:
101
+ different_omniauth_emails: You are trying to sign in with a different email
102
+ than the one in your account. Please sign in with the same email or log
103
+ out and sign up directly to create a new user.
104
+ system:
105
+ settings: "%{handler} settings"
106
+ verifications:
107
+ form:
108
+ cancel: Cancel verification
109
+ description_html: In order to obtain this authorization, you need to verify
110
+ your identity with the %{provider} service. To do that, please click on
111
+ the "%{link}" button.<br><br>
112
+ error_provider_html: "<b>%{provider} is not available.</b> It seems that
113
+ this login/authorization method has not been enabled. Please contact the
114
+ support team to fix this."
115
+ warning_html: Please make sure that the email you have in this application
116
+ (<em>%{email}</em>) is the same as the one provided by the %{provider}
117
+ service. Otherwise the verification will fail.
118
+ verifications:
119
+ authorizations:
120
+ errors:
121
+ already_verified: You have already verified your identity with this method.
122
+ pending_authorization: This authorization method requires having the %{handler_name}
123
+ authorization previously granted.
124
+ first_login:
125
+ actions:
126
+ trusted_ids_generic: Verify with %{provider}
127
+ via_oberta_handler: Verify with Via Oberta
128
+ trusted_ids:
129
+ errors:
130
+ invalid_census: Could not verify you. The data provided to the census gateway
131
+ might not be valid.
132
+ invalid_id: Could not verify you. The document identifier is invalid or
133
+ not present in the census.
134
+ invalid_method: Could not verify you. OAuth2 verification method is not
135
+ supported.
136
+ invalid_status: Could not verify you. OAuth2 verification was not ok.
137
+ invalid_type: Could not verify you. The document type is invalid or not
138
+ present in the census.
139
+ no_identity: Could not verify you. OAuth2 verification did not return an
140
+ identification.
141
+ via_oberta:
142
+ verifications:
143
+ document_type:
144
+ nie: NIE
145
+ nif: NIF
146
+ others: Residence permit or others
147
+ passport: Passport
148
+ form:
149
+ code: 'Error code: %{code}'
150
+ data: 'Data that will be sent:'
151
+ description_html: <p>This authorization checks if you are in the <b>%{organization_name}</b>
152
+ census database.</p> <p>To perform this check, the following information
153
+ will be sent to the <a href="https://www.aoc.cat/serveis-aoc/via-oberta/"
154
+ target="_blank">Via Oberta Service</a>, provided by the <a href="https://www.aoc.cat"
155
+ target="_blank">Administració Oberta de Catalunya</a></p> <p>This information
156
+ will be used for the sole purpose of verifying your identity but records
157
+ of this transaction might be kept by the service provider.</p>
158
+ document_id: Document Number
159
+ document_type: Document type
160
+ error: 'Service error message:'
161
+ tos:
162
+ agreement: I accept the terms of use and service conditions
163
+ content_html: |
164
+ <p>In order to verify that you are registered as a person in the municipality, an automated query must be made through Via Oberta to the local data of the municipal population register.</p>
165
+ <ol>
166
+ <li>You can consult the specific data processing/protection policy at the <a href="https://www.aoc.cat/proteccio-dades/">following link</a></li>
167
+ <li>Do you give your consent?</li>
168
+ </ol>
169
+ title: Via Oberta terms of use and service
@@ -0,0 +1,132 @@
1
+ ---
2
+ es:
3
+ activemodel:
4
+ errors:
5
+ messages:
6
+ invalid_icon_path_format: debe tener el formato media/images/filename
7
+ icon_path_not_found: el archivo del icono no existe en las rutas de assets registradas
8
+ attributes:
9
+ trusted_ids_census_config:
10
+ census_expiration_apply_all_tenants: 'Aplica a todos los "tenants" (esto establece los mismos días de caducidad para todas las organizaciones de esta plataforma). Aviso: los valores vacíos también se propagan'
11
+ census_tos_apply_all_tenants: 'Aplica a todos los "tenants" (esto establece los mismos "Términos de uso y condiciones" para todas las organizaciones de esta plataforma). Aviso: los valores vacíos también se propagan'
12
+ settings:
13
+ expiration_days: Expira en (días). Si está vacío, los días por defecto son %{days}.
14
+ ine: Identificador del solicitante (INE)
15
+ municipal_code: Código municipal
16
+ nif: NIF
17
+ organization_name: Nombre público de la organización
18
+ province_code: Código de provincia
19
+ tos: Términos de uso y servicio para consultar el censo
20
+ tos_if_empty_html: 'Si está vacío, las condiciones del servicio predeterminadas se extraerán de la clave I18n <code>decidim.via_oberta.verifications.tos.content_html</code>. Actualmente:'
21
+ via_oberta_handler:
22
+ document_type: 'No se ha podido obtener automáticamente. Selecciona uno de la lista:'
23
+ decidim:
24
+ authorization_handlers:
25
+ trusted_ids_handler:
26
+ explanation: Esta autorización se otorga a todos los usuarios que utilizan un método de inicio de sesión con identificador fehaciente.
27
+ fields:
28
+ extra: Información adicional
29
+ provider: Proveedor
30
+ uid: ID
31
+ name: Identificador fehaciente
32
+ via_oberta_handler:
33
+ explanation: Esta autorización se otorga a todos los usuarios que se encuentran en la base de datos del censo de Via Oberta.
34
+ fields:
35
+ document_id: DNI/NIF
36
+ name: Via Oberta
37
+ events:
38
+ trusted_ids:
39
+ verifications:
40
+ invalid:
41
+ email_intro: No ha sido posible concederte la autorización "%{handler_name}".
42
+ email_outro: Por favor, ponte en contacto con el soporte de la plataforma para comprobar el error que se ha producido.
43
+ email_subject: Error de autorización
44
+ notification_title: Autorización no válida con el método "%{handler_name}"
45
+ ok:
46
+ email_intro: Se te ha concedido la autorización "%{handler_name}".
47
+ email_outro: Ahora puedes realizar todas las acciones que requieran la autorización "%{handler_name}".
48
+ email_subject: Se ha autorizado correctamente
49
+ notification_title: Autorización correcta con el método "%{handler_name}"
50
+ system:
51
+ organizations:
52
+ omniauth_settings:
53
+ valid:
54
+ client_id: Client ID
55
+ client_secret: Clave secreta del cliente
56
+ icon_path: Ruta del icono. Si se deja vacío, se usa el icono por defecto.
57
+ scope: Ámbito
58
+ site: URL del proveedor
59
+ trusted_ids:
60
+ devise:
61
+ sessions:
62
+ new:
63
+ login: Inicia sesión
64
+ login_subtitle: Inicia sesión en Decidim y participa.
65
+ unverified_login: Otros métodos de identificación no verificada
66
+ verified_identity: Identificación digital verificada con %{provider}
67
+ verified_identity_html: |
68
+ <p>Accede con sistemas reconocidos por proveedores oficiales que acreditan tu identidad en la red, para autenticaciones más seguras.</p>
69
+ <ul>
70
+ <li>idCat Mòbil</li>
71
+ <li>idCat Certificat</li>
72
+ <li>DNIe</li>
73
+ <li>Cl@ve PIN</li>
74
+ </ul>
75
+ verified_login: Continuar con identificación verificada
76
+ providers:
77
+ default:
78
+ description: Esta autorización se otorga a todos los usuarios que utilizan un método de inicio de sesión con identificador fehaciente.
79
+ name: Identificador fehaciente
80
+ valid:
81
+ description: VÀLid es un servicio que la AOC pone a disposición de las administraciones públicas catalanas con la finalidad de integrar los diferentes mecanismos de identificación digital disponibles (idCAT Mòbil, certificados digitales y Cl@ve).
82
+ name: VÀLid
83
+ sessions:
84
+ different_omniauth_emails: Estás intentando iniciar sesión con un correo electrónico diferente al de tu cuenta. Accede con el mismo correo electrónico o cierra la sesión y regístrate con el botón directo para crear un usuario nuevo.
85
+ system:
86
+ settings: "configuración de %{handler}"
87
+ verifications:
88
+ form:
89
+ cancel: Cancela la verificación
90
+ description_html: Para obtener esta autorización, debes verificar tu identidad con el servicio %{provider}. Para ello, haz clic en el botón "%{link}".<br><br>
91
+ error_provider_html: "<b>%{provider} no está disponible.</b> Parece que este método de inicio de sesión/autorización no se ha activado. Ponte en contacto con el soporte de la plataforma para solucionarlo."
92
+ warning_html: Asegúrate de que el correo electrónico que tienes en esta aplicación (<em>%{email}</em>) sea el mismo que el que te proporciona el servicio %{provider}. En caso contrario, la verificación fallará.
93
+ verifications:
94
+ authorizations:
95
+ errors:
96
+ already_verified: Ya has verificado tu identidad con este método.
97
+ pending_authorization: Este método de autorización requiere tener previamente la autorización %{handler_name}.
98
+ first_login:
99
+ actions:
100
+ trusted_ids_generic: Verifícate con %{provider}
101
+ via_oberta_handler: Verifícate con Via Oberta
102
+ trusted_ids:
103
+ errors:
104
+ invalid_census: No se ha podido verificar. Es posible que los datos proporcionados a la pasarela del censo no sean válidos.
105
+ invalid_id: No se ha podido verificar. El identificador del documento no es válido o no se encuentra en el censo.
106
+ invalid_method: No te has podido verificar. El método de verificación OAuth2 no está soportado.
107
+ invalid_status: No te has podido verificar. La verificación OAuth2 ha sido incorrecta.
108
+ invalid_type: No se ha podido verificar. El tipo de documento no es válido o no está en el censo.
109
+ no_identity: No se ha podido verificar. La verificación OAuth2 no ha devuelto ninguna identificación.
110
+ via_oberta:
111
+ verifications:
112
+ document_type:
113
+ nie: NIE
114
+ nif: NIF
115
+ others: Permiso de residencia u otros
116
+ passport: Pasaporte
117
+ form:
118
+ code: 'Código de error: %{code}'
119
+ data: 'Datos que se enviarán:'
120
+ description_html: <p>Esta autorización comprueba si estás en la base de datos del censo <b>%{organization_name}</b>.</p> <p>Para llevar a cabo esta comprobación, se enviará la siguiente información al <a href=" https://www.aoc.cat/serveis-aoc/via-oberta/" target="_blank">Servicio Via Oberta</a>, ofrecido por la <a href="https://www.aoc.cat " target="_blank">Administració Oberta de Catalunya</a></p> <p>Esta información se utilizará con el único propósito de verificar tu identidad, pero los registros de esta transacción pueden ser conservados por el proveedor de servicios.</p>
121
+ document_id: Número de documento
122
+ document_type: Tipo de documento
123
+ error: 'Mensaje de error del servicio:'
124
+ tos:
125
+ agreement: Acepto los términos de uso y condiciones del servicio
126
+ content_html: |
127
+ <p>Para poder verificar que consta como persona empadronada en el municipio, se debe realizar una consulta automatizada mediante Via Oberta a los datos locales del padrón municipal de habitantes.</p>
128
+ <ol>
129
+ <li>Puedes consultar la política concreta de tratamiento/protección de datos en el <a href="https://www.aoc.cat/proteccio-dades/">siguiente enlace</a></li>
130
+ <li>¿Prestas tu consentimiento?</li>
131
+ </ol>
132
+ title: Términos de uso y servicio de Via Oberta
@@ -0,0 +1,168 @@
1
+ ---
2
+ fr:
3
+ activemodel:
4
+ errors:
5
+ messages:
6
+ invalid_icon_path_format: must be in the format media/images/filename
7
+ icon_path_not_found: the icon file does not exist in the registered asset paths
8
+ attributes:
9
+ trusted_ids_census_config:
10
+ census_expiration_apply_all_tenants: 'Apply to all tenants (this will set
11
+ the same expiration days for all organizations in this platform). Warning:
12
+ empty values are also propagated'
13
+ census_tos_apply_all_tenants: 'Apply to all tenants (this will set the same
14
+ "Terms of service" for all organizations in this platform). Warning: empty
15
+ values are also propagated'
16
+ settings:
17
+ expiration_days: Expires in (days). If empty, defaults to %{days} days.
18
+ ine: Requester identifier (INE)
19
+ municipal_code: Municipal code
20
+ nif: NIF
21
+ organization_name: Public organization name
22
+ province_code: Province code
23
+ tos: Terms of service for consulting the census
24
+ tos_if_empty_html: 'If empty, the default terms of service will be extracted
25
+ from the I18n key <code>decidim.via_oberta.verifications.tos.content_html</code>.
26
+ Currently:'
27
+ via_oberta_handler:
28
+ document_type: 'Could not be obtained automatically. Please select one from
29
+ the list:'
30
+ decidim:
31
+ authorization_handlers:
32
+ trusted_ids_handler:
33
+ explanation: This authorization is granted to all users who use a login method
34
+ with a trusted identifier.
35
+ fields:
36
+ extra: Additional information
37
+ provider: Provider
38
+ uid: ID
39
+ name: Trusted identifier
40
+ via_oberta_handler:
41
+ explanation: This authorization is granted to all users who are in the Via
42
+ Oberta census database.
43
+ fields:
44
+ document_id: DNI/NIF
45
+ name: Via Oberta
46
+ events:
47
+ trusted_ids:
48
+ verifications:
49
+ invalid:
50
+ email_intro: It has not been possible to grant you the "%{handler_name}"
51
+ authorization.
52
+ email_outro: Please, contact the support at your platform to check what
53
+ has gone wrong.
54
+ email_subject: Authorization error
55
+ notification_title: Invalid authorization with the "%{handler_name}" method
56
+ ok:
57
+ email_intro: You have been granted the "%{handler_name}" authorization.
58
+ email_outro: You can now perform all actions that require the "%{handler_name}"
59
+ authorization.
60
+ email_subject: Authorization successful
61
+ notification_title: Successful authorization with the "%{handler_name}"
62
+ method
63
+ system:
64
+ organizations:
65
+ omniauth_settings:
66
+ icon_path: Icon path. If is empty, the default icon will be used.
67
+ valid:
68
+ client_id: Client ID
69
+ client_secret: Client secret
70
+ scope: Scope
71
+ site: Provider URL
72
+ trusted_ids:
73
+ devise:
74
+ sessions:
75
+ new:
76
+ login: Log in
77
+ login_subtitle: Log in to Decidim and participate.
78
+ unverified_login: Other unverified identification methods
79
+ verified_identity: Digital identity verified with %{provider}
80
+ verified_identity_html: |
81
+ <p>Access with systems recognized by official providers that certify your identity on the network, for more secure authentications.</p>
82
+ <ul>
83
+ <li>idCat Mòbil</li>
84
+ <li>idCat Certificat</li>
85
+ <li>DNIe</li>
86
+ <li>Cl@ve PIN</li>
87
+ </ul>
88
+ verified_login: Continue with verified identification
89
+ providers:
90
+ default:
91
+ description: This authorization is granted to all users who use a login
92
+ method with a trusted identifier.
93
+ name: Trusted identifier
94
+ valid:
95
+ description: VÀLid is a service that AOC provides to Catalan public administrations
96
+ to integrate the different available digital identification systems (idCAT
97
+ Mòbil, digital certificates and Cl@ve).
98
+ name: VÀLid
99
+ sessions:
100
+ different_omniauth_emails: You are trying to sign in with a different email
101
+ than the one in your account. Please sign in with the same email or log
102
+ out and sign up directly to create a new user.
103
+ system:
104
+ settings: "%{handler} settings"
105
+ verifications:
106
+ form:
107
+ cancel: Cancel verification
108
+ description_html: In order to obtain this authorization, you need to verify
109
+ your identity with the %{provider} service. To do that, please click on
110
+ the "%{link}" button.<br><br>
111
+ error_provider_html: "<b>%{provider} is not available.</b> It seems that
112
+ this login/authorization method has not been enabled. Please contact the
113
+ support team to fix this."
114
+ warning_html: Please make sure that the email you have in this application
115
+ (<em>%{email}</em>) is the same as the one provided by the %{provider}
116
+ service. Otherwise the verification will fail.
117
+ verifications:
118
+ authorizations:
119
+ errors:
120
+ already_verified: You have already verified your identity with this method.
121
+ pending_authorization: This authorization method requires having the %{handler_name}
122
+ authorization previously granted.
123
+ first_login:
124
+ actions:
125
+ trusted_ids_generic: Verify with %{provider}
126
+ via_oberta_handler: Verify with Via Oberta
127
+ trusted_ids:
128
+ errors:
129
+ invalid_census: Could not verify you. The data provided to the census gateway
130
+ might not be valid.
131
+ invalid_id: Could not verify you. The document identifier is invalid or
132
+ not present in the census.
133
+ invalid_method: Could not verify you. OAuth2 verification method is not
134
+ supported.
135
+ invalid_status: Could not verify you. OAuth2 verification was not ok.
136
+ invalid_type: Could not verify you. The document type is invalid or not
137
+ present in the census.
138
+ no_identity: Could not verify you. OAuth2 verification did not return an
139
+ identification.
140
+ via_oberta:
141
+ verifications:
142
+ document_type:
143
+ nie: NIE
144
+ nif: NIF
145
+ others: Residence permit or others
146
+ passport: Passport
147
+ form:
148
+ code: 'Error code: %{code}'
149
+ data: 'Data that will be sent:'
150
+ description_html: <p>This authorization checks if you are in the <b>%{organization_name}</b>
151
+ census database.</p> <p>To perform this check, the following information
152
+ will be sent to the <a href="https://www.aoc.cat/serveis-aoc/via-oberta/"
153
+ target="_blank">Via Oberta Service</a>, provided by the <a href="https://www.aoc.cat"
154
+ target="_blank">Administració Oberta de Catalunya</a></p> <p>This information
155
+ will be used for the sole purpose of verifying your identity but records
156
+ of this transaction might be kept by the service provider.</p>
157
+ document_id: Document Number
158
+ document_type: Document type
159
+ error: 'Service error message:'
160
+ tos:
161
+ agreement: I accept the terms of use and service conditions
162
+ content_html: |
163
+ <p>In order to verify that you are registered as a person in the municipality, an automated query must be made through Via Oberta to the local data of the municipal population register.</p>
164
+ <ol>
165
+ <li>You can consult the specific data processing/protection policy at the <a href="https://www.aoc.cat/proteccio-dades/">following link</a></li>
166
+ <li>Do you give your consent?</li>
167
+ </ol>
168
+ title: Via Oberta terms of use and service