Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login does not work on HTTPS #9

Open
RibeyeOnTheBone opened this issue Aug 7, 2017 · 0 comments
Open

Login does not work on HTTPS #9

RibeyeOnTheBone opened this issue Aug 7, 2017 · 0 comments

Comments

@RibeyeOnTheBone
Copy link

We have had Pentaho running nicely from this image.

Recently installed nginx and https.

Now there is an issue with the login process. The user gets the failed login message. But if they then go directly to Pentaho it has them logged in. Also fails to return to the login screen if incorrect credentials are used.

My experts tell me the setup of nginx looks good. But function bounceToReturnLocation() is using http when it should be https?

nginx configuration
location /pentaho {
proxy_pass http://localhost:8181;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

login page
https://domain.com/pentaho/Login

function bounceToReturnLocation() {
    // pass
    var locale = document.login.locale.value;

    var returnLocation = 'http\x3A\x2F\x2Fdomain.com\x2Fpentaho\x2Findex.jsp';

    if (returnLocation != '' && returnLocation != null) {
      window.location.href = returnLocation;
    } else {
      window.location.href = window.location.href.replace("Login", "Home") + "?locale=" + locale;
    }

}

error
https://monosnap.com/file/ASomSwBmdC61GAVrsGhZAUTGEM4BEB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant