fix oauth2 & service authentication provider