dify/e2e/features/auth/redirect-security.feature
Coding On Star c68e5e5ed3
fix(auth): prevent open redirects in post-login flows (#38864)
Co-authored-by: CodingOnStar <hanxujiang@dify.com>
2026-07-13 10:11:36 +00:00

16 lines
586 B
Gherkin

@auth @redirect-security
Feature: Safe sign-in redirects
@authenticated
Scenario: Ignore an external redirect target for an authenticated user
Given I am signed in as the default E2E admin
When I open the sign-in page with redirect target "https://google.com"
Then I should be on the console home
@unauthenticated
Scenario: Ignore an external redirect target after signing in
Given I am not signed in
When I open the sign-in page with redirect target "https://google.com"
And I sign in as the default E2E admin
Then I should be on the console home