-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Google has deprecated OOB OAuth Flows #59
Comments
Quite a shame since it's what the official doc for chrome web-store is using: https://developer.chrome.com/docs/webstore/using_webstore_api/ |
That's the reason I am unable to get my refresh token lol |
From the linked post, it seems that the temporary fix is to add a I think that the tokens generated this way will continue being valid, the problem here is just the process itself (which I'll have to update at some point) |
adding |
No luck for me either, sadly |
It seems like that parameter will only suppress the warning message for existing projects; new projects are banned from using it. |
FYI I tried to contact some people that are working at google via linkedin because I couldn't find a way to reach this company. Their support page is a joke for extension developers. |
I'm inclined to agree with PlasmoHQ/chrome-webstore-api#12 that the way forward is to run a local server which allows you to use the loopback method as per the docs. There are many cheap ways to start a quick local server so even if there's no special support in this app we can update the documentation if someone tests out the flow! |
@melink14 but what will we do after that method deprecation? |
@melink14 I will be working on open-sourcing the tool mentioned soon, hopefully by end of this week. Been traveling last month so got a bit jetlag still xD... @rafek1241 the tool I'm developing will not use the loopback method, but will use the normal OAuth flow to get the refreshToken. |
@louisgv |
@rafek1241 The loopback method is not being deprecated for desktop apps (only for android and ios). @louisgv Thanks a lot for the follow up. It should be quite useful! But are you sure you're not using the loopback method? I can't see any other type of recommended flow for desktop applications that were using oob before: https://developers.google.com/identity/protocols/oauth2/native-app#step-2:-send-a-request-to-googles-oauth-2.0-server |
Oops my bad, by "loopback method," I was thinking about the method used in the original guide, which used the My solution is indeed using loopback for redirect_uri. Somehow my brain linked both |
Just released gcp-refresh-token, source code here. Let me know if you have any issue (preferably creating an issue under
Refers to the readme and this updated guide for more info! |
Worked for me, thanks! This should be included in the docs now. |
Feel free to send a PR to replace the current note in the local guide with a direct link to that package. Something like: Google broke blah blah, use tool XYZ to generate the key and refresh token. |
@fregante done 👍 |
Please refer to the new guide in #63. You can temporarily read it at: The solution was to:
Let me know if this works for you, this should be easier than running third party code on your machine |
This comment was marked as off-topic.
This comment was marked as off-topic.
@rafek1241 If you got that error, you entered the client ID incorrectly. I just tested it and I got "client secret" missing instead. Were you able to publish the extension to the store with this new refresh token? This change brings the It's possible that we're successfully getting the refresh token, but then |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as off-topic.
This comment was marked as off-topic.
As feared, using "Desktop app" fails the upload with: {
"error": "invalid_request",
"error_description": "client_secret is missing."
} The client secret was dropped in v0.5.0 (#46) so if we revert back to "Desktop app" I'll also have to revert to using the client secret. I tried using "Chrome app" while creating the new token but it does not natively accept
|
This comment was marked as off-topic.
This comment was marked as off-topic.
I tested the whole workflow and it's now working: https://github.com/fregante/browser-extension-template/runs/6022135901?check_suite_focus=true
Findings:
Future: |
This brings README.md in line with the change made at fregante/chrome-webstore-upload@5bfa4dc. Bugs: fregante/chrome-webstore-upload#59, fregante/chrome-webstore-upload#63
Update:
We put out a guide on how to fix this.
As of Feb 28th 2022, Google has deprecated OOB OAuth flows.
Just a heads up as the documentation to get the refreshToken relies on the oob flow, and we're seeing
400
s when trying to go through that flow.Example:
The text was updated successfully, but these errors were encountered: