Setting credential one shot