-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add trusted-ids module #32
Conversation
…atalunya into staging
…atalunya into staging
…dim-Catalunya into staging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work @microstudi !
Can you please check my comments, mainly small things 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for checking, just a couple of comments and we're done
Thanks @microstudi ! |
This reverts commit 548f0d3.
Substitutes the current
decidim-via_oberta_authorization
and theidcat_mobil
gems for the integrated https://github.com/ConsorciAOC-PRJ/decidim-module-trusted-ids gem that performs both tasks along with additional verification workflows (see the plugin for details).In order to deploy this, the minimum ENV variables that need to be added are:
VALID_CLIENT_ID
(formerlyIDCAT_MOBIL_CLIENT_ID
(this is optional and can be override for any tenant)VALID_CLIENT_SECRET
(formerlyIDCAT_MOBIL_CLIENT_SECRET
(also optional)VALID_SITE
(formerlyIDCAT_MOBIL_SITE_URL
(without the path part)CENSUS_AUTHORIZATION_ENV=preproduction
(orproduction
for production, this configures the via_oberta url automatically)OMNIAUTH_ENABLED_BY_DEFAULT=false
to not enable the valid authentication by default so it is configurable per tenant (even if aVALID_CLIENT_ID
is defined)In the case of not wanting to allow tenants to configure the
VALID_CLIENT_ID
orVALID_CLIENT_SECRET
, also add the following ENV VAR:OMNIAUTH_GLOBAL_ATTRIBUTES=client_id client_secret site icon_path scope
Once deployed, needs to be configured in /system:
vàlid
andvia oberta
VALID_CLIENT_ID
and VALID_CLIENT_SECRET` are definedUpgrade tasks,
It is possible to update the tenant configuration from the IDcatMobil config to the new VALID values, to do that, please run this command in a console: