node-red-auth-github icon indicating copy to clipboard operation
node-red-auth-github copied to clipboard

Redirect with httpRoot configuration setting

Open madmax76 opened this issue 7 years ago • 0 comments

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/",

madmax76 avatar Feb 22 '18 15:02 madmax76