Cannot find Openshift 3 login details for Eclipse with JBoss tools - eclipse

Openshift gives a login command for oc upon clicking copy login command but Eclipse asks for a server url and a token.
I tried putting server url and token from the copied command but it shows login error.
It shows "The server type, credentials, or auth scheme might be incorrect."
Openshift login
Where can I find these details for login?
Please help me login to openshift using eclipse.

if you look at what "Copy Login Command" in the Web-UI for OpenShift gives you you'll see something similar to this:
oc login https://192.168.64.39:8443 --token=XXXXXXXXXXXXXXXXXXXXXXXX
There are all informations that you need to connect via Eclipse. You have the server url https://192.168.64.39:8443 and the token that you can give Eclipse when switching the authentication to OAuth.

Related

When I log in to the Cloud foundry (Authenticating... {"error":"invalid_grant","error_description":"User authentication failed: unauthorized"})

I am inside the SAP Business Application Studio, inside the terminal, when I put the CF login command I enter my credentials and this appears
Authenticating...
{"error":"invalid_grant","error_description":"User authentication failed: Unauthorized"}
Could you please help me
The solution on my side is to use the --sso option.
cf login --sso -a https://api.cf.us10.hana.ondemand.com
Afterwards you will be prompted to get a passcode from this url: https://login.cf.us10.hana.ondemand.com/passcode
However, for me this failed several times.
The key is to use alternative identity provider on the login screen
and enter sap.ids as provider when you already have an SAP Universal login
Sadly, this does not work when using trial version in API endpoint https://api.cf.us10-001.hana.ondemand.com . I already opened a support request.

Azure "MySQL in App" An attempt was made to access a socket in a way forbidden by its access permissions

I activated “MySQL in app” on Azure and clicked the “Manage” link. A phpMyAdmin login page launches.
Login does not accept any username/password combo including what I find in MYSQLCONNECTSTR_localdb.ini.
Is there any other setup required to access the tool, or is there another tool I could use to create a new db on MySQL in App?
I found the problem. If the website has been stopped and restarted you have to first connect to the website URL from a browser.
Once you do that, the instance is running and you can connect to phpMyAdmin.
It will launch without a login screen.

Can't login to openshift from eclipse

I have created OpenShift account, and I can login to OpenShift web console from browser, but I can't connect from eclipse. Server type is set to OpenShift 2 and "use default server" is checked. I entered the email address for username and password, the same stuff I use for logging in on OpenShift Web Console.
When I try to login I get :
Your credentials are not authorized to access "https://openshift.redhat.com/broker/rest/user"
The problem you're running into is that you're actually using OpenShift Online 3. You can find a blog post about using eclipse with OpenShift Online 3 here. The only difference being that you need to replace the console url with the correct url from your cluster.
Your cluster's console URL will look like https://console.<cluster-name>.openshift.com.

How to use the google sdk to authenticate within a VM?

Working in a Debain 8 vagrant box and I'm trying to connect to the gcloud, but I'm unable to authenticate through a webapp cause there is none. Anyone know how to get authentication?
You could use gcloud CLI tool (here). Install it, run gcloud auth login and it will display a link you can open on a different machine to authenticate and paste back a secret to the machine where you ran the command to get authentication there.

How can I use gcloud auth?

I am trying to follow the tutorial of python with google cloud sql.
When I run: ./cloud_sql_proxy -instances="My-connection-name"=tcp:3306, I get google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information..
Also, when I run: gcloud auth application-default login, I get www.googleapis.com%2Fauth%2Fcloud-platform&access_type=offline" doesn’t understand the “open location” message. (-1708)
I followed downloaded the json file for the credintials and set the enviromnet virable GOOGLE_APPLICATION_CREDENTIALS to link to the json file, but I still get the same error.
TL;DR - You can ignore the doesn’t understand the “open location” message. (-1708) error. You should see a browser window/tab opening with the URL, if not you can follow the steps I've added below where you can manually copy-paste the URL in the browser and you should not be seeing any warnings/errors.
You will need to authorize gcloud (one-time step) to use your account credentials for Google Cloud API calls.
Run gcloud auth application-default login --no-launch-browser
You will be provided a URL. Open the URL in the browser, authorize the application using your Google account and you will be provided a verification code in the page.
Copy the verification code and paste it back in the terminal where you ran the gcloud command in Step 1.
Now gcloud as well as any Google Cloud Client libraries you use can make use of the Application Default Credentials from that machine.