node-red-auth-github
node-red-auth-github copied to clipboard
Redirect with httpRoot configuration setting
When the httpRoot parameter in settings.js is set:
httpRoot: '/nodered',
GitHUB will redirect to the URL without in this case '/nodered'
When leaving the httpRoot setting default, it works fine.
I have been looking as a non programmer to this code:
var callbackURL = opts.baseURL+
((opts.baseURL[opts.baseURL.length-1] === "/")?"":"/")+
"auth/strategy/callback";
Could anything be wrong there?
After clicking the github button I am redirected to:
http://localhost/auth/strategy
baseURL: "http://localhost/nodered/",