-
Notifications
You must be signed in to change notification settings - Fork 758
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
API tokens do not work in config/default.toml #526
Comments
This was a conscious decision iirc, since API tokens can be compromised and have a much longer life. You can use |
From looking at the logic in the code, this should already work. The way to do it is to set the For example: oauth_token = "<API TOKEN>"
expiration_time = "3021-12-31T23:59:59+00:00" |
But as @threepointone said, we don't really want to encourage people to edit the |
Scratch that. After further discussions, for 2.0 we are not going to implement support for "logging in" via an API token. We are discussing with the wider Workers/IAM teams at Cloudflare as to whether we can make the OAuth login more fine grained to control what accounts/roles a particular user login is granted. But this will not be available for Wrangler 2.0 release. The immediate change to be implemented is to give a better error message when a user has used Wrangler 1's |
- If a user has previously logged in via Wrangler 1 with an API token, we now display a helpful warning. - When logging in and out, we no longer display the path to the internal user auh config file. - When logging in, we now display an initial message to indicate the authentication flow is starting. Fixes [cloudflare#526](cloudflare#526)
- If a user has previously logged in via Wrangler 1 with an API token, we now display a helpful warning. - When logging in and out, we no longer display the path to the internal user auh config file. - When logging in, we now display an initial message to indicate the authentication flow is starting. Fixes [cloudflare#526](cloudflare#526)
- If a user has previously logged in via Wrangler 1 with an API token, we now display a helpful warning. - When logging in and out, we no longer display the path to the internal user auh config file. - When logging in, we now display an initial message to indicate the authentication flow is starting. Fixes [cloudflare#526](cloudflare#526)
- If a user has previously logged in via Wrangler 1 with an API token, we now display a helpful warning. - When logging in and out, we no longer display the path to the internal user auh config file. - When logging in, we now display an initial message to indicate the authentication flow is starting. Fixes [#526](#526)
When an API token (not OAuth token) is added to
~/.wrangler/config/default.toml
, it is rejected and the user is prompted to login. We should accept the API token.The text was updated successfully, but these errors were encountered: