How to get Google access token programmatically (automated testing)?
Create a project on Google-console: https://console.cloud.google.com/
Go to Credentials -> + CREATE CREDENTIALS -> OAuth client ID:
- Application Type: Web
- Name: Some application's name
- Authorized redirect URIs: https://developers.google.com/oauthplayground + (optionally) your real callback handlers, e.g. https://example.com/auth/google/callback.
- Press Create.
- Save Client ID and Client Secret.