def METHOD_NAME(self):
    integration = self.create_integration(
        self.organization, provider="discord", external_id="guild-id"
    )
    provider = self.create_identity_provider(integration=integration)
    self.create_identity(user=self.user, identity_provider=provider, external_id="user-id")
    discord_request = self.mock_request()
    discord_request._validate_identity()
    user = discord_request.get_identity_user()
    assert user is not None
    assert user.id == self.user.id