- 01 Apr, 2022 1 commit
-
-
Andrej Shadura authored
Any protection of this kind is best done elsewhere e.g. in the frontend proxy. See https://phabricator.apertis.org/T8569 Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk>
-
- 19 Feb, 2022 1 commit
-
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk>
-
- 22 Nov, 2021 1 commit
-
-
Andrej Shadura authored
When logging in with e.g. OpenID Connect/Azure, two email addresses may be provided, one in "email" field and another in "username" or "nickname". Since this is exactly the opposite of what the separate Azure backend does, migration from Azure to OpenID Connect/Azure needs to try both emails which may be different. Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk>
-
- 30 Sep, 2021 1 commit
-
-
Andrej Shadura authored
Add omniauth_openid_connect and other related gems in order to support OpenID Connect in OmniAuth. This version of omniauth_openid_connect is the oldest version available supporting Debiab stretch with upstream fixes backported. Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk>
-
- 29 Jun, 2021 36 commits
-
-
Andrej Shadura authored
Add a new "hash type" for invalid passwords, which is never equal to normal passwords, but nevertheless can be changed without being known by the user. This "invalid" password can only be set by directly setting the password hash type. When updating the password using update_password method, it will always be upgrade it to the strongest hash type, sha256crypt. To allow changing this "invalid" password to a normal one, stop requiring a non-empty current password in the password change dialog when changing a password from an "invalid" one. Don’t show the current password box either, as it is not used anyway in this case, making it better not to show it to avoid confusion. Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Mark-passwords-for-SSO-only-users-as-invalid-to-allow-cha.patch
-
Andrej Shadura authored
Backports of upstream commits 5524ffcc and 362bdc3a moved some validation code into a validate method which was never called. A simple fix makes this code run again. Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic backports Gbp-Pq: Name Unbreak-the-validators.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Allow-passing-SSO-auth-configuration-as-a-secret.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora Gbp-Pq: Name Allow-changing-the-session-lifetime.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora Gbp-Pq: Name Install-and-configure-mstmp.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora Gbp-Pq: Name Clean-up-stale-pid-files-on-start.patch
-
Andrej Shadura authored
Some providers set username or nickname to an email address. For this reason, first collect the best possible user name we can find, and only then fix it to match our requirements. Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Try-harder-to-derive-the-username-from-email-addresses.patch
-
Andrej Shadura authored
The generator requires Python 3 and pyyaml Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Generate-the-SSO-config-from-the-environment-variables.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Move-Docker-related-files-under-docker.patch
-
Andrej Shadura authored
Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Split-docker-entrypoint.sh-into-three-separate-files.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Preinstall-gems-for-Azure-OAuth2.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Build-Docker-images-in-GitLab-CI.patch
-
Andrej Shadura authored
Create a Docker image with a Debian package built from the current Git source. This eliminates an extra round trip with a manual upload to OBS and the package getting published and fetched from apt repos. Unfortunately, doing this in a way compatible with what was previously done requires some non-trivial hacks. Since we want fairly recent OmniAuth gems, we install them from external sources directly into the resulting Docker image. ruby-faraday is used by the OAuth2 auth backend, but new versions require newer Ruby than what stretch has, so we preinstall it from packages to avoid pinning it. Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Build-a-Docker-image-with-the-Web-UI-only.patch
-
Andrej Shadura authored
OmniAuth 2.x breaks CSRF, needs more investigation. Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Limit-OmniAuth-to-1.x-only.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Implement-login-flow.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Add-SSO-callback-to-allow-existing-users-log-in-with-an-e.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name user-model-add-find_with_omniauth-create_with_omniauth.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Rename-create_ldap_user-to-create_external_user.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Add-SSO-buttons-to-the-normal-login-page.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Add-a-link-to-the-SSO-login-to-the-dropdown-login-box.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Add-an-SSO-login-page-so-that-users-can-choose-between-pr.patch
-
Andrej Shadura authored
Signed-off-by:
Andrej Shadura <andrew.shadura@collabora.co.uk> Gbp-Pq: Topic collabora/sso Gbp-Pq: Name Parse-SSO-authentication-config-on-startup.patch
-
We already have a method for creating users with fake passwords. Let's use it. Cherry-picked from 86473a4b Gbp-Pq: Topic backports Gbp-Pq: Name api-DRY-code-by-using-existing-methods.patch
-
Cherry-picked from 1c264f59 Gbp-Pq: Topic backports Gbp-Pq: Name webui-Drop-validation-of-user-s-email-address.patch
-
Cherry-pick from 7967fe46 Gbp-Pq: Topic backports Gbp-Pq: Name api-Use-SecureRandom-to-generate-a-random-fake-password.patch
-
Add basic tests for the new method. Cherry-picked from 51ac16ad Gbp-Pq: Topic backports Gbp-Pq: Name api-ci-Move-creation-of-user-with-fake-pw-to-model.patch
-
* Moves ldap related code into new method that handles creation of LDAP users * Cleans up setting attributes Cherry-picked from b6d9a59f Gbp-Pq: Topic backports Gbp-Pq: Name api-Refactor-creation-of-LDAP-users.patch
-
After a successful login OBS is updating user data fetched from the LDAP instance. This simplifies the code a bit. Cherry-picked from c349da0a Gbp-Pq: Topic backports Gbp-Pq: Name api-Refactor-updating-user-data-in-LDAP-mode.patch
-
Searching a users works differently in LDAP mode. This splits out the LDAP related code. Cherry-picked from cde81ee1 Gbp-Pq: Topic backports Gbp-Pq: Name api-Move-ldap-related-code-to-separate-method.patch
-
When a user logs in to OBS we mark the last login. For unknown reasons we prevented the updated_at attribute to be updated when we run this operation. Since there is no good reason to do this, we drop the code. Cherry-picked from 6d0e5b20 Gbp-Pq: Topic backports Gbp-Pq: Name api-Drop-code-that-prevents-updating-updated_at.patch
-
ActiveModel::Dirty provides a nice set of helper methods to track and handle changes of attributes of a model. This allows us to remove a number of custom code that previously was taking care of this. Cherry-picked from 7453160b Gbp-Pq: Topic backports Gbp-Pq: Name api-Use-ActiveModel-Dirty-in-user-model.patch
-
and drop the two methods that were storing them before. Cherry-picked from a60da39a Gbp-Pq: Topic backports Gbp-Pq: Name api-Store-available-password-hashing-algorithms-in-consta.patch
-
Cherry-picked from 1b353118 Gbp-Pq: Topic backports Gbp-Pq: Name webui-api-Update-code-documentation.patch
-
Partially cherry-picked from 362bdc3a Gbp-Pq: Topic backports Gbp-Pq: Name Simplify-password-validation.patch
-
DEPRECATION WARNING: Passing string to define callback is deprecated and will be removed in Rails 5.1 without replacement. Partially cherry-picked from 04bbd1d1 Gbp-Pq: Topic backports Gbp-Pq: Name api-webui-Fix-deprecated-string-callback.patch
-
Was: [ci][api] Enable Rails/Validation rubocop cop Checks for the use of old-style attribute validation macros. Cherry-picked from 5524ffcc Gbp-Pq: Topic backports Gbp-Pq: Name Replace-old-style-attribute-validation-macros-with-new-st.patch
-