mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
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:
1 parent
cbdcd4a572
commit
421dc2a0a7
1 file changed
+1
-1
@@ -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>}"
|
||||
|
||||
Reference in new issue
Block a user