Fixes in the oauth2 service.