From 1afe4425ed5bb15c157d245d3bee52fa9d09f3ff Mon Sep 17 00:00:00 2001 From: dzhoou Date: Thu, 11 May 2017 18:05:07 -0400 Subject: [PATCH] Update client_realm for basic flow In case user wants to use a realm other than "/", this would accommodate basic flow page for the change. --- common.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common.js b/common.js index 9f692d2..659c994 100644 --- a/common.js +++ b/common.js @@ -30,6 +30,12 @@ var client_id = "myClientID"; var client_secret = "password"; var client_realm = "/"; +// In case we want to use other realms (like /realm instead of /), +// this will allow basic flow to work properly. +if(client_realm.length>1){ + access = "/oauth2"+client_realm+"/access_token" +} + // ...END CONFIGURATION // http://stackoverflow.com/ has lots of useful snippets...