cds_check_authentication function

Check if authentication works with a specific token