From e8d40a0a249c253fa55ddf75d4661641d7bba9ec Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Sun, 10 Jan 2021 06:27:56 +0100 Subject: [PATCH 1/2] Add info how to disable authentication Signed-off-by: Sebastian Gerber --- configuration/restdocs.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configuration/restdocs.md b/configuration/restdocs.md index 76aab209bb..e56c8c3160 100644 --- a/configuration/restdocs.md +++ b/configuration/restdocs.md @@ -87,6 +87,18 @@ To authenticate with an API token, **apaddpend `-u '{API_TOKEN}:'` to the comman You can manage all access tokens in your profile settings in the Main UI. +### Disable authentication + +It is possible to disable authentication. +Stop openhab and add this part to ```userdata/etc/org.apache.karaf.features.xml``` before ``````: + +``` + + openhab-*-auth + +``` +Once openhab is restarted authentication will be disabled. + ## Additional Considerations The REST API also supports server-push supporting subscriptions on change notification for certain resources. From 773248d75953e537a849448bbcbeb03bc43c3bad Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Sun, 10 Jan 2021 11:27:26 +0100 Subject: [PATCH 2/2] replaced userdata with wildcard --- configuration/restdocs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/restdocs.md b/configuration/restdocs.md index e56c8c3160..62e5a166da 100644 --- a/configuration/restdocs.md +++ b/configuration/restdocs.md @@ -90,7 +90,7 @@ You can manage all access tokens in your profile settings in the Main UI. ### Disable authentication It is possible to disable authentication. -Stop openhab and add this part to ```userdata/etc/org.apache.karaf.features.xml``` before ``````: +Stop openhab and add this part to ```$OPENHAB_USERDATA/etc/org.apache.karaf.features.xml``` before ``````: ```