Google Cloud SDK Init web authentication error - sdk

I installed Google Cloud SDK on Mac and then ran the command ./google-cloud-sdk/bin/gcloud init but every time I do this I get the following errors:
Errors
it comes up with the prompt to log in and choose an account but then every time I click on my google account it tries to load and then I get a safari cannot connect to server error.
I have also tried running ./google-cloud-sdk/bin/gcloud auth login with the same errors.
Any help would be greatly appreciated

Did you try running it without opening the browser?
gcloud auth login --no-launch-browser

Related

Unable to login to thingsboard PE cloud

I tried updating my free trail thingsboard PE cloud account. After giving card details, the process was interrupted by an error.
Now when I try to login my account it is showing the following error
GET: /api/billing/tenant/customer
404: OK
and I am unable to login.
Please help me to resolve this issue

Can't login to ODK Central Admin panel

My ODK central was working perfectly fine before I decided to update it to the recent release of ODK using this URL (https://docs.getodk.org/central-upgrade/), everything went fine. After the update, I couldn't sign into the admin account again, it keeps returning Something went wrong: the server returned an invalid error.
I'm using Docker version 20.10.12 on Ubuntu 20.04
I have tried this https://forum.getodk.org/t/cant-login-something-went-wrong-the-server-returned-an-invalid-error/27413/6 but no success
Below is a screenshot of the error
After running docker-compose logs I got the following logs as shown below
In the central directory type docker-compose logs --tail 50 services and send us the output

Unable to request session with fastlane spaceauth: Spaceship::AccessForbiddenError

I am trying to deploy iOS application automatically with fastlane under CircleCI. Unfortunately it wants 2-factor authentication. I am trying to do on my development machine:
fastlane spaceauth -u my#email.com
and it sends me code by mobile phone, i.e. password is correct and valid. Unfortunately, after I enter the code, it says me
Requesting session...
Could not login to App Store Connect
Please check your credentials and try again.
This could be an issue with App Store Connect,
Please try unsetting the FASTLANE_SESSION environment variable
(if it is set) and re-run `fastlane spaceauth`
Exception type: Spaceship::AccessForbiddenError
How to fix that?

Hyperledger Composer Multiple user mode for REST server throws 401 error

I have been following the tutorials which are provided in Hyperledger Composer docs, but I am not getting the results that they are supposed to I should be getting. Specifically, when I try to enable the multiple user mode for the REST server and I try to call one of the business network REST API operations using the REST API explorer I always get a HTTP 401 Authorization Required. According to the Tutorial, I if get this error is due to I have not authenticated correctly to the REST API, but it does not mention why this error occurs or how I may fix it.
It is very important for application development to be able to authenticate each user who wants to make requests to the API.
What version of Hyperledger Composer are you using?
The tutorial/document you refer to is correct for v0.15.0 and works a little differently for prior versions.
Are you seeing an Access token at the top of the Browser Window - this indicates that you have successfully authenticated and can continue with the steps for the Wallet.
If you are not seeing an Access token displayed, then make sure you hit your REST server with a URL similar to http://localhost:3000/auth/github again and login.
If you are still experiencing problems I would suggest going back to just using authentication without multiuser mode and verify that the authentication works properly from there.
After some research, I found a solution and worked for me.
If you already enable Github authentication then ignore. Otherwise first enable authentication following this tutorial Enaling Authentication.
Before start rest server you will export your admin card from the network by using this command:
composer card export -n admin#sample-network -f admincard.card
Now start rest server with authentication using this command:
composer-rest-server -c admin#sample-network -p 3000 -a true -m true
After some time rest server will start.
Now First, go this link for authentication: http://localhost:3000/auth/github
After successful authentication, you will get an access token and also you will see a Wallet options below.
Now you need to import a card that you already export from your network.
That's it, you can able to add anything to your network.
In my case, I have two missed steps:
enabling authentication for the REST server
https://hyperledger.github.io/composer/v0.19/integrating/enabling-rest-authentication.html
composer-rest-server -c admin#you_project -a true, I just execute composer-rest-server but did not specify the identity "admin#you_project" before.

Deploy a Rails app to Openshift: rhc - Username or password is not correct

Our company wants to build a Rails-based backend website and we chose the OpenShift platform to host and deploy. To connect the two, all the guides lead to the installation of the ruby rhc gem and then setup it.
I'm fresh to OpenShift and I'm trying to setup the rhc toolkit on a remote Ubuntu server. Now I ran gem install rhc and everything went fine. Since I have to configure rhc through rhc setup, I ran this command afterwards and just after asking which server I want to use (I left it blank to use openshift.redhat.com) it comes to the login part.
At this moment, OpenShift Online allows you to login only with your GitHub account, so I gave in the GitHub credentials and... voilĂ ! Username or password is not correct. Tried this both on PuTTy and ConEmu.
I swear I checked the login data more than 1000 times, and I'm totally lost.
Thank you a lot in advance
If you want to use OpenShift Online NextGen Developer Preview, you do not use the rhc client. You need to use the oc client. So anything you read where it says rhc is the wrong documentation.
Once you are logged in through the new web console, select on the '?' in circle top right and select command line tools. It will give you links to the 'oc' tools to download, plus the command you need to run to login from the command line using a session access token.
The link to that page should be:
https://console.preview.openshift.com/console/command-line
Also suggest you get down and use the free eBook for the new platform at:
https://www.openshift.com/promotions/for-developers.html
It uses a VM, but ignore the client login step from that and use that from page above instead and then follow examples in the book against the Online NextGen Developer Preview instead.

Resources