Updated the oauth2 callback path and code.