Pattern match on the encoded credentials string