mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
009e7c2b78
One can now access a service using the basic authorization mechanism. Note the service must not be protected by 2 factors. The Remote-User and Remote-Groups are forwarded from Authelia like any browser authentication.
11 lines
798 B
Gherkin
11 lines
798 B
Gherkin
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
|
|
When I visit "https://public.test.local:8080/headers"
|
|
Then I see header "Custom-Forwarded-User" set to "john"
|
|
Then I see header "Custom-Forwarded-Groups" set to "dev,admin"
|
|
|
|
Scenario: Custom-Forwarded-User and Custom-Forwarded-Groups are correctly forwarded to protected backend when basic auth is used
|
|
When I request "https://single_factor.test.local:8080/headers" with username "john" and password "password" using basic authentication
|
|
Then I received header "Custom-Forwarded-User" set to "john"
|
|
And I received header "Custom-Forwarded-Groups" set to "dev,admin" |