Invalid scope on sandbox login

Just started out with this whole API login with ouath 2 and having an issue with the sandbox.
When I try to get the access token, I get this:
and in the page
The page isn’t redirecting properly
I tried different scopes, but none of them worked.

What am I doing wrong?