2017-10-14 20:04:43 +07:00
|
|
|
Feature: User and groups headers are correctly forwarded to backend
|
|
|
|
@need-authenticated-user-john
|
|
|
|
Scenario: Custom-Forwarded-User and Custom-Forwarded-Groups are correctly forwarded to protected backend
|
2017-11-03 03:34:07 +07:00
|
|
|
When I visit "https://public.example.com:8080/headers"
|
2017-10-14 20:04:43 +07:00
|
|
|
Then I see header "Custom-Forwarded-User" set to "john"
|
|
|
|
Then I see header "Custom-Forwarded-Groups" set to "dev,admin"
|
2017-11-02 01:23:45 +07:00
|
|
|
|
|
|
|
Scenario: Custom-Forwarded-User and Custom-Forwarded-Groups are correctly forwarded to protected backend when basic auth is used
|
2017-11-03 03:34:07 +07:00
|
|
|
When I request "https://single_factor.example.com:8080/headers" with username "john" and password "password" using basic authentication
|
2017-11-02 01:23:45 +07:00
|
|
|
Then I received header "Custom-Forwarded-User" set to "john"
|
|
|
|
And I received header "Custom-Forwarded-Groups" set to "dev,admin"
|