Implement state provider for OAuth2 protocol