Add omniauth saml section for sign in and sign up page

Co-authored-by: Anamika Aggarwal <anamikaagg18@gmail.com>
This commit is contained in:
taitus
2022-07-11 13:06:44 +02:00
committed by Javi Martín
parent 9d216084a7
commit a4709f9da0
15 changed files with 181 additions and 2 deletions

View File

@@ -286,6 +286,10 @@ Devise.setup do |config|
Rails.application.secrets.wordpress_oauth2_secret,
client_options: { site: Rails.application.secrets.wordpress_oauth2_site },
setup: ->(env) { OmniauthTenantSetup.wordpress_oauth2(env) }
config.omniauth :saml,
sp_entity_id: Rails.application.secrets.saml_sp_entity_id,
idp_cert: Rails.application.secrets.saml_idp_cert,
idp_sso_service_url: Rails.application.secrets.saml_idp_sso_service_url
# ==> Warden configuration
# If you want to use other strategies, that are not supported by Devise, or

View File

@@ -278,6 +278,10 @@ en:
info:
sign_in: "Sign in with:"
sign_up: "Sign up with:"
saml:
sign_in: Sign in with SAML
sign_up: Sign up with SAML
name: SAML
or_fill: "Or fill the following form:"
proposals:
create:

View File

@@ -91,6 +91,8 @@ en:
google_login_description: "Allow users to sign up with their Google Account"
wordpress_login: "Wordpress login"
wordpress_login_description: "Allow users to sign up with their Wordpress Account"
saml_login: "SAML login"
saml_login_description: "Allow users to sign up with SAML"
featured_proposals: "Featured proposals"
featured_proposals_description: "Shows featured proposals on index proposals page"
signature_sheets: "Signature sheets"

View File

@@ -275,6 +275,10 @@ es:
sign_in: Entra con Twitter
sign_up: Regístrate con Twitter
name: Twitter
saml:
sign_in: Entra con SAML
sign_up: Regístrate con SAML
name: SAML
info:
sign_in: "Entra con:"
sign_up: "Regístrate con:"

View File

@@ -91,6 +91,8 @@ es:
google_login_description: "Permitir que los usuarios se registren con su cuenta de Google"
wordpress_login: "Registro con Wordpress"
wordpress_login_description: "Permitir que los usuarios se registren con su cuenta de Wordpress"
saml_login: "Registro con SAML"
saml_login_description: "Permitir que los usuarios se registren usando SAML"
featured_proposals: "Propuestas destacadas"
featured_proposals_description: "Muestra propuestas destacadas en la página principal de propuestas"
signature_sheets: "Hojas de firmas"

View File

@@ -91,6 +91,9 @@ staging:
wordpress_oauth2_key: ""
wordpress_oauth2_secret: ""
wordpress_oauth2_site: ""
saml_sp_entity_id: ""
saml_idp_cert: ""
saml_idp_sso_service_url: ""
<<: *maps
<<: *apis
@@ -147,6 +150,9 @@ preproduction:
wordpress_oauth2_key: ""
wordpress_oauth2_secret: ""
wordpress_oauth2_site: ""
saml_sp_entity_id: ""
saml_idp_cert: ""
saml_idp_sso_service_url: ""
<<: *maps
<<: *apis
@@ -202,5 +208,8 @@ production:
wordpress_oauth2_key: ""
wordpress_oauth2_secret: ""
wordpress_oauth2_site: ""
saml_sp_entity_id: ""
saml_idp_cert: ""
saml_idp_sso_service_url: ""
<<: *maps
<<: *apis