[T7484] add _check_credentials function.

Merged Joel Maglioni requested to merge T7484 into 17.0-stage

Merge request reports