Apply changes for Oauth2