set up Oauth and base flask