Prisma1: prisma login and logging in does not authenticate CLI

Created on 23 May 2018  路  8Comments  路  Source: prisma/prisma1

Bug Report

Current behavior

  • don't be logged in the CLI
  • don't be logged in the browser
  • run prisma login
  • login using Github

result: you are now logged in in the browser. Terminal still says

Opening https://app.prisma.io/cli-auth?secret=SECRET in the browser

and you are not authenticated in the CLI.

Expected behavior?

After logging in in the browser, your CLI is authenticated.

bu2-confirmed arecli

Most helpful comment

Ok for others who are having the same problem:

I solved it by installing version 1.10.2 instead of 1.11 because it works in version 1.10.2 馃憤
After I logged in I then upgraded to 1.11 where I was because of the cloud session key still logged in.

All 8 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This is still an issue.

I got the same issue.
It try to login first on the dashboard, and the made a prisma login but there is no change.

As talked with @marktani, I have the same bug on a fresh install of prisma (v1.11.0)

After some tests (directly in my global node_modules), it looks like this transpiled code doesn't manage well the await/async logic into generator/yield.
I add some this.out.log(xx) to get some information but that block the rest of the script but it allows to receive the token availability to finish the login.

Maybe this PR will solve this bug when it will be publish:
https://github.com/prismagraphql/prisma/pull/2596

Hi!

I have the same problem and I'm a little unsure about how you solved it @johannpinson ?

Thank you in advance :)

Ok for others who are having the same problem:

I solved it by installing version 1.10.2 instead of 1.11 because it works in version 1.10.2 馃憤
After I logged in I then upgraded to 1.11 where I was because of the cloud session key still logged in.

We fixed the GitHub login logic and fixed another problem which caused more login problems here.

Hi, what's the status of this? I'm currently using prisma-cli version 1.34.8. Running prisma login --key SECRET still prompts the browser for authentication. This would be really helpful for things like running a CI/CD pipeline.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thomaswright picture thomaswright  路  3Comments

marktani picture marktani  路  3Comments

schickling picture schickling  路  3Comments

tbrannam picture tbrannam  路  3Comments

AlessandroAnnini picture AlessandroAnnini  路  3Comments