If I run the script mentioned in the docs and open the URL, then I get this error:
python3 authenticate_in_web_application.py --client_secrets_path client_secret.json
Paste this URL into your browser:
Waiting for authorization and callback to: http://localhost:8080...
Traceback (most recent call last):
File "authenticate_in_web_application.py", line 203, in <module>
main(args.client_secrets_path, configured_scopes)
File "authenticate_in_web_application.py", line 81, in main
code = _get_authorization_code(passthrough_val)
File "authenticate_in_web_application.py", line 112, in _get_authorization_code
params = _parse_raw_query_params(data)
File "authenticate_in_web_application.py", line 160, in _parse_raw_query_params
params = match.group(1)
AttributeError: 'NoneType' object has no attribute 'group'