Skip to content

Migrate SSO Enforce Terms Checkbox to Pajamas

What does this MR do and why?

Migrate generic checkbox on ee/app/views/groups/sso/_enforce_terms.html.haml to pajamas component

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Enable EE license.
  2. Setup HTTPS and Group SAML on GDK. Enable the following feature flags:
  • group_managed_accounts
  • sign_up_on_sso
  • convert_user_to_group_managed_accounts
  1. Enforce ToS and Privacy Policy on https://gdk.test:3443/admin/application_settings/general
  2. Enforce grouped managed account at https://gdk.test:3443/groups/<project>/-/saml
  3. Get your group's SSO link at https://gdk.test:3443/groups/<project>/-/saml
  4. Login on the SSO page using one of the predefined accounts E.g. user: user1, pass: user1pass
  5. You should be redirect https://gdk.test:3443/groups/<project>/-/sign_up along with the checkbox if everything was set up properly. Or you might also have to manually revisit the same SSO link (I'm sure there's a better way though).

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Fixes #361198 (closed)

Edited by Shane Maglangit

Merge request reports