Attempting to get Oauth2 to work with a client side flow