test(dashboard): require the exact hint in the e2e redirect check

The case pattern *kc_idp_hint=e2e-idp* also accepted e2e-idp-other
and xkc_idp_hint=e2e-idp. Match the parameter as a whole: preceded by
&, followed by & or the end of the URL.

Assisted-By: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
This commit is contained in:
Andrey Kolkov committed 2026-11-19 20:44:54 +07:00
1 parent cbdcd4a572
commit 421dc2a0a7
1 file changed
+1 -1
+1 -1
View File
@@ -386,7 +386,7 @@
wait "$pf_pid" 2>/dev/null || true
case "$hinted" in
https://keycloak.example.org/realms/cozy/protocol/openid-connect/auth\?*kc_idp_hint=e2e-idp*) ;;
https://keycloak.example.org/realms/cozy/protocol/openid-connect/auth\?*\&kc_idp_hint=e2e-idp\&*|https://keycloak.example.org/realms/cozy/protocol/openid-connect/auth\?*\&kc_idp_hint=e2e-idp) ;;
*)
echo "=== /oauth2/start?kc_idp_hint=e2e-idp did not redirect to the cozy realm with the hint ==="
echo "Location: ${hinted:-<none>}"