Skip to content

Configurable Logout URL #10255

@fionera

Description

@fionera

NetBox version

v3.3.2

Feature type

New functionality

Proposed functionality

I'd like to have a configuration option to set a custom URL for the Logout Button in Netbox.

As example a config parameter REMOTE_AUTH_LOGOUT which gets set to the URL of the Logout-Endpoint.

The original Issue #9316 was closed and locked and I just dont understand why. This doesnt help in any way since I now had to make a copy of this issue.

Use case

I'm using Authentik and OAuth2-Proxy for authentication. This means Netbox is protected by a reverse proxy that handles authentication and hands over the logged in user to Netbox via an HTTP header, configured by the Netbox option REMOTE_AUTH_HEADER.

When clicking "Logout" in Netbox Menu nothing happens because no logout in Authentik is made and I'm immediatly re-logged-in in Netbox (the HTTP header set by the reverse proxy is still present because the session in Authentik is still active). To solve this problem a configurable Logout URL is needed, so the click on logout in netbox calls the sign_out URL of Authentik.

Perhaps the following docs can help to get a full picture of what I'm trying to achieve.

goauthentik.io/docs/providers/proxy
goauthentik.io/docs/providers/proxy/#logging-out
https://oauth2-proxy.github.io/oauth2-proxy/docs/features/endpoints#sign-out

Database changes

No response

External dependencies

No response

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions