Skip to content

Commit 90ff071

Browse files
authored
REST docs: use the redirect URI as client ID (openhab#257)
Depends on openhab/openhab-core#1496 Signed-off-by: Yannick Schaus <[email protected]>
1 parent 3513dad commit 90ff071

File tree

1 file changed

+4
-5
lines changed
  • bundles/org.openhab.ui.restdocs/src/main/resources/swagger

1 file changed

+4
-5
lines changed

bundles/org.openhab.ui.restdocs/src/main/resources/swagger/index.html

+4-5
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@
4747
onComplete: function(swaggerApi, swaggerUi){
4848
if(typeof initOAuth == "function") {
4949
initOAuth({
50-
clientId: "your-client-id",
51-
clientSecret: "your-client-secret-if-required",
52-
realm: "your-realms",
53-
appName: "your-app-name",
54-
scopeSeparator: ","
50+
clientId: window.location.origin + "/doc/o2c.html",
51+
realm: "openhab",
52+
appName: "openHAB",
53+
scopeSeparator: " "
5554
});
5655
}
5756

0 commit comments

Comments
 (0)