Set up Oauth2 server and authentication