Updated the check to make it more robust when looking for the authnType
parameters