Reverse proxy header authentication
Table of contents
Overview
Team Edition offers a feature for authorization and authentication using reverse proxy headers. This method allows to authenticate users via specific HTTP header fields.
Configuration Steps
Enabling Reverse proxy authentication
As an administrator, navigate to the Settings -> Server configuration.
Locate the Reverse proxy option and activate this setting to allow reverse proxy authentication.
Save changes.
Reverse proxy identity provider configuration
To configure reverse proxy authentication in the Team Edition using the graphical user interface (GUI), follow these steps:
1) Log in as an administrator. 2) Navigate to Settings -> Server configuration in the Team Edition interface. 3) Click on the + Add button to create a new authentication provider. 4) In the Provider dropdown menu, select Reverse Proxy. 5) Enter a unique identifier in the ID field and a name for the configuration in the Configuration name field. 6) Click on Save to apply the changes.
Configuring default HTTP header fields
Configure the standard HTTP header fields as follows:
Header | Description |
---|---|
X-User | user login |
X-Team | user teams |
X-First-name | user profile firstname |
X-Last-name | user profile lastname |
X-Full-name | user profile fullname |
X-Role | user roles, only for DBeaver Team edition |
Header example
Consider a user named newuser
, belonging to both user
and admin
teams. To access an application with reverse proxy
header authentication enabled, the following HTTP headers should be set in the request to the Team Edition application:
X-User: newuser
X-Team: user|admin
X-First-name: John
X-Last-name: Smith
Tip: Team Edition categorizes users into two default teams:
user
andadmin
. Default delimiter used to separate teams in the header is|
(could be customized inteam-delimiter
parameter, all characters are allowed).