Repository navigation
feat(login): skip login when Console runs with auth disabled - #3577
Merged
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
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
What changed in this PR
Adds an authDisabled mode for Console deployments, enabling automatic authentication, login redirection, and hidden logout controls.
Changes:
- Adds
authDisabledto environment configurations. - Updates authentication, login, and toolbar behavior.
- Adds unit tests for disabled-auth behavior.
- Enterprise runtime initialization still needs to replace
authDisabledwhenAUTH_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.
3 tasks done
Adopts the protected-route access and version-loading approach from #3643.
3 of 4 tasks
nmgaston
self-requested a review
October 16, 2026 18:59
nmgaston
approved these changes
Oct 16, 2026
|
🎉 This PR is included in version 4.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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
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 )