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

Is there any possibility from which we can by pass username and password in eclipse che url? #3215

Closed
nipobhsnro opened this issue Nov 30, 2016 · 14 comments
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@nipobhsnro
Copy link

I want to display eclipse che url : http://{ip-addrees}/dashboard in mvc C# but every time when I am loading that url it is giving me a pop up for username and password. So is there any api or any thing from which I can bypass username and password?

can any one please help me with this?

@TylerJewell
Copy link

The reproduction steps are not clear, so engineers will not be able to help without those steps and possibly animated gif to show it.

@TylerJewell TylerJewell added the kind/question Questions that haven't been identified as being feature requests or bugs. label Nov 30, 2016
@nipobhsnro
Copy link
Author

Che version :4.5.1 and image: bitnami eclipse che.
please find attached screen shot
bitnami1

@TylerJewell
Copy link

This will not be a Che issue - it's a Bitnami issue with their configuration. @bmicklea - who is the right person from Bitnami to investigate?

@bmicklea
Copy link

@nipobhsnro when you started the cloud machine from Bitnami you should have seen a screen that looks like this:

screen shot 2016-11-30 at 12 40 15 pm

In the Credentials section you have your username and password. That should get you in.

@nipobhsnro
Copy link
Author

@bmicklea I have created virtual machine from azure portal with eclipse che installation.
And I change default password of bitnami using following command:
sudo htpasswd /opt/bitnami/apps/eclipseche/conf/.htpasswd user

@bmicklea
Copy link

Ah, I see - you want to avoid the login altogether. As Tyler mentioned that authentication is part of the Bitnami image so we will need someone from Bitnami to explain if it can be turned off or bypassed. Of course if you turn it off then anyone who knew the IP address would be able to access your server.

@worksamp
Copy link

@bmicklea ya by turning off credentials any one can access it..so i dont want to turn off credentials but is there any api from which we can pass that credentials and open eclipse che url?
In my application i need to open that url but user(which will use that application) would not known the username and password so i need to by pass it using any api

@bmicklea
Copy link

bmicklea commented Nov 30, 2016 via email

@TylerJewell
Copy link

Bitnami does not provide an API for their credential management, I believe. @bmicklea - the API for Che is a different auth mechanism, not the one he is running into.

@worksamp
Copy link

@bmicklea and @TylerJewell so everytime i need to enter that credentials?

@bmicklea
Copy link

I believe so, but as I said you're really asking about something that Bitnami built and isn't part of Eclipse Che directly so I'm not 100% sure. I've asked Bitnami to comment.

@worksamp
Copy link

@bmicklea and @TylerJewell Thank you so much for your help. I am looking forward from Bitnami.

@amrecio
Copy link
Contributor

amrecio commented Nov 30, 2016

@worksamp I'm a Bitnami Engineer. As mentioned earlier, Bitnami does not provide an API for credential management. Our Eclipse Che cloud image is configured to use HTTP basic authentication to avoid exposing the application to the Internet in a public cloud provider.

I'm aware this is not the best solution to your issue, but if you want to disable the authentication for your server, you may do so by running the following commands:

$ sudo sed -i -e 's/Require valid-user/Require all granted/g' /opt/bitnami/apps/eclipseche/conf/httpd-app.conf
$ sudo /opt/bitnami/ctlscript.sh restart apache

An alternative solution would be to include the username and the password in the URL, like this:

http://<user>:<password>@example.com/dashboard

@nipobhsnro
Copy link
Author

@bmicklea @TylerJewell @worksamp @amrecio Thanks for your help .
I think its better everytime user will enter username and password any ways by using this http://:@example.com/dashboard user will know the username and password.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

5 participants