diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 767b4f7c39..e1da2f93eb 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## ✨ 1.6.2 - Support for Guest Access [PR #167](https://github.com/Lissy93/dashy/pull/167) +- Adds functionality for optional read-only guest access to dashboards with authentication +- Can be enabled by setting `appConfig.enableGuestAccess: true` + ## 💄 1.6.1 - Adds new Theme [PR #166](https://github.com/Lissy93/dashy/issues/166) - Adds Dashy theme, for use in the dev dashboard ## ✨ 1.5.9 - New Minimal/ Startpage View [PR #155](https://github.com/Lissy93/dashy/issues/155) diff --git a/README.md b/README.md index b8ab6b203b..5bdc6adb2a 100644 --- a/README.md +++ b/README.md @@ -251,7 +251,10 @@ appConfig: - user: alicia hash: 4D1E58C90B3B94BCAD9848ECCACD6D2A8C9FBC5CA913304BBA5CDEAB36FEEFA3 ``` -At present, access control is handled on the frontend, and therefore in security-critical situations, it is recommended to use an alternate method for authentication, such as [Authelia](https://www.authelia.com/), a VPN or web server and firewall rules. + +By default, when authentication is configured no user can access your dashboard without first logging in. If you would like to allow for read-only access by unauthenticated users, then you can enable guest mode, by setting `appConfig.enableGuestAccess: true`. + +**Note**: At present, access control is handled on the frontend, and therefore in security-critical situations, it is recommended to use an alternate method for authentication, such as [Authelia](https://www.authelia.com/), a VPN or web server and firewall rules. Instructions for setting this up can be found [in the docs](docs/authentication.md#alternative-authentication-methods).

+

+ {{ $t('config-editor.not-admin-note') }} +

{{ responseText }}

{{ $t('config-editor.success-note-l1') }} @@ -243,6 +246,10 @@ p.response-output { } } +p.no-permission-note { + color: var(--config-settings-color); +} + button.save-button { padding: 0.5rem 1rem; margin: 0.25rem auto; diff --git a/src/components/Settings/AppButtons.vue b/src/components/Settings/AppButtons.vue deleted file mode 100644 index 875ae11b41..0000000000 --- a/src/components/Settings/AppButtons.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - - - diff --git a/src/components/Settings/AuthButtons.vue b/src/components/Settings/AuthButtons.vue new file mode 100644 index 0000000000..29e082cbdd --- /dev/null +++ b/src/components/Settings/AuthButtons.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/src/components/Settings/SettingsContainer.vue b/src/components/Settings/SettingsContainer.vue index 9c6a1bf6b1..e3e2e4d63e 100644 --- a/src/components/Settings/SettingsContainer.vue +++ b/src/components/Settings/SettingsContainer.vue @@ -13,7 +13,7 @@ - +