if self.source_type == self.EDX_SOURCE and self.o_auth_client.grant_type != OAuthClient.CREDENTIALS:
            raise ValidationError({'o_auth_client': _('Edx content source needs OAuth client with credentials type')})