I have setup a Google OAuth client application and obtained client_ID and secret key. See the screenshot below.
Now, visitors to my website are sent to this URL when they click the "Login with Google" badge:
When the user clicks there, I expect that Google will pop up a permission-granting window like this one. However that doesn't happen! When the user clicks on that link, it doesn't ask them for permissions. It just sends them to the redirect_uri
and tacks on the code at the end of it.
Why? Isn't this a security hole? Why is a code being issued without permissions being granted by the user??