Skip to content

feat(login): skip login when Console runs with auth disabled - #3577

Merged
rsdmike merged 4 commits into
mainfrom
feat/auth-disabled
Oct 16, 2026
Merged

rsdmike merged 4 commits into
mainfrom
feat/auth-disabled

Conversation

@rsdmike

@rsdmike rsdmike commented Sep 23, 2026

Copy link
Copy Markdown
Member

Adds an authDisabled environment flag (minified as authDisabled:!1) that Console flips when AUTH_DISABLED=true. The UI then starts logged in, redirects /login to the dashboard, and hides the logout menu.

PR Checklist

  • Unit Tests have been added for new changes
  • API tests have been updated if applicable
  • All commented code has been removed
  • If you've added a dependency, you've ensured license is compatible with Apache 2.0 and clearly outlined the added dependency.

What are you changing?

Anything the reviewer should know when reviewing this PR?

If the there are associated PRs in other repositories, please link them here (i.e. device-management-toolkit/repo#365 )

Adds an authDisabled environment flag (minified as authDisabled:!1) that
Console flips when AUTH_DISABLED=true. The UI then starts logged in,
redirects /login to the dashboard, and hides the logout menu.
Copilot AI lite review requested due to automatic review settings September 23, 2026 22:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

init.sh does not patch the enterprise bundle’s authDisabled flag when AUTH_DISABLED=true.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Adds an authDisabled mode for Console deployments, enabling automatic authentication, login redirection, and hidden logout controls.

Changes:

  • Adds authDisabled to environment configurations.
  • Updates authentication, login, and toolbar behavior.
  • Adds unit tests for disabled-auth behavior.
  • Enterprise runtime initialization still needs to replace authDisabled when AUTH_DISABLED=true.
File Summary
src/​environments/​environment.ts Adds the default auth flag.
src/​environments/​environment.prod.ts Adds the production auth flag.
src/​environments/​environment.enterprise.ts Adds the enterprise auth flag.
src/​environments/​environment.enterprise.dev.ts Adds the enterprise development flag.
src/​app/​login/​login.component.ts Redirects disabled-auth users.
src/​app/​login/​login.component.spec.ts Tests login redirection.
src/​app/​core/​toolbar/​toolbar.component.ts Exposes disabled-auth state.
src/​app/​core/​toolbar/​toolbar.component.spec.ts Tests account-menu visibility.
src/​app/​core/​toolbar/​toolbar.component.html Hides the account menu.
src/​app/​auth.service.ts Starts disabled-auth sessions as logged in and blocks logout.
src/​app/​auth.service.spec.ts Tests disabled-auth behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/environments/environment.enterprise.ts
@nmgaston
nmgaston self-requested a review October 16, 2026 18:59
@rsdmike
rsdmike merged commit 00c150a into main Oct 16, 2026
10 checks passed
@rsdmike
rsdmike deleted the feat/auth-disabled branch October 16, 2026 21:14
RosieAMT pushed a commit that referenced this pull request Oct 16, 2026
# [4.1.0](v4.0.1...v4.1.0) (2026-10-16)

### Features

* **login:** skip login when Console runs with auth disabled ([#3577](#3577)) ([00c150a](00c150a)), closes [#3643](#3643)
@RosieAMT

Copy link
Copy Markdown

🎉 This PR is included in version 4.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skip Console UI Login When Authentication Is Disabled

4 participants