Tried to set up a box repository and got the same error.
I am trying to follow the docs as closely as I can.
https://docs.moodle.org/33/en/Google_Drive_repository
Everything seems to work, then I get this error:
400. That’s an error.
Error: redirect_uri_mismatch
The redirect URI in the request, https://nuclix.net/admin/oauth2callback.php, does not match the ones authorized for the OAuth client. Visit https://console.developers.google.com/apis/credentials/oauthclient/782013411975-72dmsdu5tgb4sv9l0re76ge9hkff2chp.apps.googleusercontent.com?project=782013411975 to update the authorized redirect URIs.