OAuth2 implementation for XP Framework