Skip to content

Automatically trigger OIDC login if redirected - #1747

Open
gzm0 wants to merge 1 commit into
DependencyTrack:mainfrom
gzm0:auto-login
Open

Automatically trigger OIDC login if redirected#1747
gzm0 wants to merge 1 commit into
DependencyTrack:mainfrom
gzm0:auto-login

Conversation

@gzm0

@gzm0 gzm0 commented Aug 14, 2026

Copy link
Copy Markdown

Description

Automatically trigger OIDC login if we got redirected. The redirect originates here:

frontend/src/router/index.js

Lines 1210 to 1212 in 82b6350

const redirectToLogin = () => {
next({ name: 'Login', query: { redirect: to.fullPath }, replace: true });
};

Addressed Issue

Fixes #530.

Additional Details

I have considered introducing a config option / feature flag for this, but decided against it.
I'd expect all users to want this behavior.

I have tested this locally, both that the auto-redirect works and that manually navigating to /login does not trigger it.

Checklist

  • I have read and understand the contributing guidelines
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly IMHO insufficiently significant of a change for the docs, but should be in release notes.

Signed-off-by: Tobias Schlatter <schlatter.tobias@gmail.com>
@owasp-dt-bot

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skip login screen and try OIDC automatically (if available)

2 participants