Error 400 following admin_sdk directory quickstart
Expected Behavior
I should be able to complete OAuth flow and get a list of users.
Actual Behavior
When I click on the URL I receive in my console, I get a notice that the OAuth out-of-band (OOB) flow has been deprecated.
Clicking details shows the following:

Steps to Reproduce the Problem
- Create a project.
- Give it admin SDK permissions.
- Create OAuth Credentials.
- Attempt to run admin_sdk/directory/quickstart.rb.
Specifications
- Ruby 3.1.2
- Mac OS Monterey
What is the solution to that ?
You have to implement a local webserver that listens for the OAuth traffic inside of your application. I found some code somewhere but set this project down because I don't have enough users to justify the time investment required to fix this particular problem, and so cannot use this API.
You have to implement a local webserver that listens for the OAuth traffic inside of your application. I found some code somewhere but set this project down because I don't have enough users to justify the time investment required to fix this particular problem, and so cannot use this API.
I actually use the API from a script, so I won't implement a webserver. And I lack time too, so I implemented a temporary and hacky solution for now.
Thanks anyways, cheers.
I actually use the API from a script, so I won't implement a webserver. And I lack time too, so I implemented a temporary and hacky solution for now.
Thanks anyways, cheers.
Can you please share your temporary and hacky solution? :blush: How did you overcome the Error 400 invalid_request above?
Thanks.
Closing this issue as the repository is archived.