Step-up auth: Make conditions evaluation more readable

What does this MR do and why?

[skip ci] Step-up auth: Make conditions evaluation more readable

This commit addresses the suggestion from @atevans, see !187491 (comment 2547835827)

Changelog: other

🛠️ with ❤️ at Siemens

References

Screenshots or screen recordings

Only refactor and no changes in the behavior.

How to set up and validate locally

  1. Run the relevant test
    bundle exec rspec spec/lib/gitlab/auth/oidc/step_up_authentication_spec.rb

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

MR Checklist (@gerardo-navarro)

Related to #474650

Edited by Gerardo Navarro

Merge request reports

Loading